diff options
author | fsamuel <fsamuel@chromium.org> | 2014-09-16 02:16:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-16 09:19:41 +0000 |
commit | 3a3d128e45fb5c63bf7b5cbbf2619e704acc52fd (patch) | |
tree | c5931631de928a19e2d22c43b7ebee35f51956ad /extensions/common/guest_view | |
parent | 352f1537f3774bb29bb084ad95e30bf52930917a (diff) | |
download | chromium_src-3a3d128e45fb5c63bf7b5cbbf2619e704acc52fd.zip chromium_src-3a3d128e45fb5c63bf7b5cbbf2619e704acc52fd.tar.gz chromium_src-3a3d128e45fb5c63bf7b5cbbf2619e704acc52fd.tar.bz2 |
Rename ChromeBrowserPluginDelegate to GuestViewContainer
This CL renames ChromeBrowserPluginDelegate to GuestViewContainer and moves it to extensions
This CL moves guest_view_constants to extensions/common/*
This CL also attaches a GuestViewContainer to all GuestViews.
BUG=330264, 352290
Review URL: https://codereview.chromium.org/577453002
Cr-Commit-Position: refs/heads/master@{#295034}
Diffstat (limited to 'extensions/common/guest_view')
-rw-r--r-- | extensions/common/guest_view/guest_view_constants.cc | 23 | ||||
-rw-r--r-- | extensions/common/guest_view/guest_view_constants.h | 29 |
2 files changed, 52 insertions, 0 deletions
diff --git a/extensions/common/guest_view/guest_view_constants.cc b/extensions/common/guest_view/guest_view_constants.cc new file mode 100644 index 0000000..6782599 --- /dev/null +++ b/extensions/common/guest_view/guest_view_constants.cc @@ -0,0 +1,23 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "extensions/common/guest_view/guest_view_constants.h" + +namespace guestview { + +// Parameters/properties on events. +const char kIsTopLevel[] = "isTopLevel"; +const char kReason[] = "reason"; +const char kUrl[] = "url"; +const char kUserGesture[] = "userGesture"; + +// Initialization parameters. +const char kParameterApi[] = "api"; +const char kParameterInstanceId[] = "instanceId"; + +// Other. +const char kGuestViewManagerKeyName[] = "guest_view_manager"; +const int kInstanceIDNone = 0; + +} // namespace guestview diff --git a/extensions/common/guest_view/guest_view_constants.h b/extensions/common/guest_view/guest_view_constants.h new file mode 100644 index 0000000..c76b924 --- /dev/null +++ b/extensions/common/guest_view/guest_view_constants.h @@ -0,0 +1,29 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Constants used for the WebView API. + +#ifndef EXTENSIONS_COMMON_GUEST_VIEW_GUEST_VIEW_CONSTANTS_H_ +#define EXTENSIONS_COMMON_GUEST_VIEW_GUEST_VIEW_CONSTANTS_H_ + +namespace guestview { + +// Parameters/properties on events. +extern const char kIsTopLevel[]; +extern const char kReason[]; +extern const char kUrl[]; +extern const char kUserGesture[]; + +// Initialization parameters. +extern const char kParameterApi[]; +extern const char kParameterInstanceId[]; + +// Other. +extern const char kGuestViewManagerKeyName[]; +extern const int kInstanceIDNone; + +} // namespace guestview + +#endif // EXTENSIONS_COMMON_GUEST_VIEW_GUEST_VIEW_CONSTANTS_H_ + |