summaryrefslogtreecommitdiffstats
path: root/extensions/common/guest_view
diff options
context:
space:
mode:
authorpaulmeyer <paulmeyer@chromium.org>2015-01-09 11:26:54 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-09 19:27:49 +0000
commit70fcd543a625faddac3e618de87bf0eba18f3a30 (patch)
tree9c97f4aca3818c87ffafd770c6aa421d7184c623 /extensions/common/guest_view
parent3cc867a93497b05d8d3a1056bf3f8de186ed5a7a (diff)
downloadchromium_src-70fcd543a625faddac3e618de87bf0eba18f3a30.zip
chromium_src-70fcd543a625faddac3e618de87bf0eba18f3a30.tar.gz
chromium_src-70fcd543a625faddac3e618de87bf0eba18f3a30.tar.bz2
Refactored SetUpAutoSize() out of WebViewGuest and ExtensionOptionsGuest into GuestViewBase, since all guestviews should setup sizing in the same way.
TBR=rockot@chromium.org Review URL: https://codereview.chromium.org/832143004 Cr-Commit-Position: refs/heads/master@{#310810}
Diffstat (limited to 'extensions/common/guest_view')
-rw-r--r--extensions/common/guest_view/guest_view_constants.cc7
-rw-r--r--extensions/common/guest_view/guest_view_constants.h8
2 files changed, 14 insertions, 1 deletions
diff --git a/extensions/common/guest_view/guest_view_constants.cc b/extensions/common/guest_view/guest_view_constants.cc
index 6782599..465d6ba 100644
--- a/extensions/common/guest_view/guest_view_constants.cc
+++ b/extensions/common/guest_view/guest_view_constants.cc
@@ -6,6 +6,13 @@
namespace guestview {
+// Sizing Attributes.
+const char kAttributeAutoSize[] = "autosize";
+const char kAttributeMaxHeight[] = "maxheight";
+const char kAttributeMaxWidth[] = "maxwidth";
+const char kAttributeMinHeight[] = "minheight";
+const char kAttributeMinWidth[] = "minwidth";
+
// Parameters/properties on events.
const char kIsTopLevel[] = "isTopLevel";
const char kReason[] = "reason";
diff --git a/extensions/common/guest_view/guest_view_constants.h b/extensions/common/guest_view/guest_view_constants.h
index c76b924..36c3fee 100644
--- a/extensions/common/guest_view/guest_view_constants.h
+++ b/extensions/common/guest_view/guest_view_constants.h
@@ -9,6 +9,13 @@
namespace guestview {
+// Sizing Attributes.
+extern const char kAttributeAutoSize[];
+extern const char kAttributeMaxHeight[];
+extern const char kAttributeMaxWidth[];
+extern const char kAttributeMinHeight[];
+extern const char kAttributeMinWidth[];
+
// Parameters/properties on events.
extern const char kIsTopLevel[];
extern const char kReason[];
@@ -26,4 +33,3 @@ extern const int kInstanceIDNone;
} // namespace guestview
#endif // EXTENSIONS_COMMON_GUEST_VIEW_GUEST_VIEW_CONSTANTS_H_
-