summaryrefslogtreecommitdiffstats
path: root/extensions/common/guest_view
diff options
context:
space:
mode:
authorpaulmeyer <paulmeyer@chromium.org>2015-01-23 09:13:38 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-23 17:14:51 +0000
commiteb98f911ef43bf5463621031d0e79a98e061b3cb (patch)
treee7ba01d6f7ceadcd94941ed1c6db7b857727c57b /extensions/common/guest_view
parentfa52466b75af4dc5cf17354b4912fa6634d33b3d (diff)
downloadchromium_src-eb98f911ef43bf5463621031d0e79a98e061b3cb.zip
chromium_src-eb98f911ef43bf5463621031d0e79a98e061b3cb.tar.gz
chromium_src-eb98f911ef43bf5463621031d0e79a98e061b3cb.tar.bz2
Implemented explicit resizing from guestview.
A guest can now be explicitly resized (in addition to autosizing) from guest_view.js, using the new |setSize| function. This new function combines autosizing and normal resizing, as described in: https://docs.google.com/document/d/1EJfmJSK0JJsxKptSRhepnsOOwvXJNv5nnJ1pZdjGDRQ BUG=434226 Review URL: https://codereview.chromium.org/857093003 Cr-Commit-Position: refs/heads/master@{#312866}
Diffstat (limited to 'extensions/common/guest_view')
-rw-r--r--extensions/common/guest_view/guest_view_constants.cc2
-rw-r--r--extensions/common/guest_view/guest_view_constants.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/extensions/common/guest_view/guest_view_constants.cc b/extensions/common/guest_view/guest_view_constants.cc
index e04e7be..3ce10726 100644
--- a/extensions/common/guest_view/guest_view_constants.cc
+++ b/extensions/common/guest_view/guest_view_constants.cc
@@ -35,5 +35,7 @@ const char kParameterInstanceId[] = "instanceId";
// Other.
const char kGuestViewManagerKeyName[] = "guest_view_manager";
const int kInstanceIDNone = 0;
+const int kDefaultWidth = 300;
+const int kDefaultHeight = 300;
} // namespace guestview
diff --git a/extensions/common/guest_view/guest_view_constants.h b/extensions/common/guest_view/guest_view_constants.h
index d3abd3e..f42cab7 100644
--- a/extensions/common/guest_view/guest_view_constants.h
+++ b/extensions/common/guest_view/guest_view_constants.h
@@ -38,6 +38,8 @@ extern const char kParameterInstanceId[];
// Other.
extern const char kGuestViewManagerKeyName[];
extern const int kInstanceIDNone;
+extern const int kDefaultWidth;
+extern const int kDefaultHeight;
} // namespace guestview