diff options
author | paulmeyer <paulmeyer@chromium.org> | 2015-01-22 11:13:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-22 19:13:54 +0000 |
commit | 1b61eb2416aa8b922134955d7a4ef412b45b3f9e (patch) | |
tree | 6095bffb8de095d84c92f3cf11a6c70e12c35f2b /extensions/common/guest_view | |
parent | e5db46e6dec58a157e114d8f64e9f98a6eee3bc2 (diff) | |
download | chromium_src-1b61eb2416aa8b922134955d7a4ef412b45b3f9e.zip chromium_src-1b61eb2416aa8b922134955d7a4ef412b45b3f9e.tar.gz chromium_src-1b61eb2416aa8b922134955d7a4ef412b45b3f9e.tar.bz2 |
Added the infrastructure for surfaceProxy.onResize() and SurfaceView.onResize(), as per https://docs.google.com/a/google.com/document/d/1EJfmJSK0JJsxKptSRhepnsOOwvXJNv5nnJ1pZdjGDRQ/edit?usp=sharing.
BUG=434226
Review URL: https://codereview.chromium.org/856563002
Cr-Commit-Position: refs/heads/master@{#312651}
Diffstat (limited to 'extensions/common/guest_view')
-rw-r--r-- | extensions/common/guest_view/guest_view_constants.cc | 11 | ||||
-rw-r--r-- | extensions/common/guest_view/guest_view_constants.h | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/extensions/common/guest_view/guest_view_constants.cc b/extensions/common/guest_view/guest_view_constants.cc index 465d6ba..e04e7be 100644 --- a/extensions/common/guest_view/guest_view_constants.cc +++ b/extensions/common/guest_view/guest_view_constants.cc @@ -6,15 +6,24 @@ namespace guestview { -// Sizing Attributes. +// Sizing attributes/parameters. const char kAttributeAutoSize[] = "autosize"; const char kAttributeMaxHeight[] = "maxheight"; const char kAttributeMaxWidth[] = "maxwidth"; const char kAttributeMinHeight[] = "minheight"; const char kAttributeMinWidth[] = "minwidth"; +const char kElementWidth[] = "elementWidth"; +const char kElementHeight[] = "elementHeight"; + +// Events. +const char kEventResize[] = "guestViewInternal.onResize"; // Parameters/properties on events. const char kIsTopLevel[] = "isTopLevel"; +const char kNewWidth[] = "newWidth"; +const char kNewHeight[] = "newHeight"; +const char kOldWidth[] = "oldWidth"; +const char kOldHeight[] = "oldHeight"; const char kReason[] = "reason"; const char kUrl[] = "url"; const char kUserGesture[] = "userGesture"; diff --git a/extensions/common/guest_view/guest_view_constants.h b/extensions/common/guest_view/guest_view_constants.h index 36c3fee..d3abd3e 100644 --- a/extensions/common/guest_view/guest_view_constants.h +++ b/extensions/common/guest_view/guest_view_constants.h @@ -9,15 +9,24 @@ namespace guestview { -// Sizing Attributes. +// Sizing attributes/parameters. extern const char kAttributeAutoSize[]; extern const char kAttributeMaxHeight[]; extern const char kAttributeMaxWidth[]; extern const char kAttributeMinHeight[]; extern const char kAttributeMinWidth[]; +extern const char kElementWidth[]; +extern const char kElementHeight[]; + +// Events. +extern const char kEventResize[]; // Parameters/properties on events. extern const char kIsTopLevel[]; +extern const char kNewWidth[]; +extern const char kNewHeight[]; +extern const char kOldWidth[]; +extern const char kOldHeight[]; extern const char kReason[]; extern const char kUrl[]; extern const char kUserGesture[]; |