Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: extensions/common/guest_view/guest_view_constants.cc

Issue 910073003: <webview>: Make contentWindow available prior to attachment (on display:none). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use constants Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/common/guest_view/guest_view_constants.h" 5 #include "extensions/common/guest_view/guest_view_constants.h"
6 6
7 namespace guestview { 7 namespace guestview {
8 8
9 // Sizing attributes/parameters. 9 // Sizing attributes/parameters.
10 const char kAttributeAutoSize[] = "autosize"; 10 const char kAttributeAutoSize[] = "autosize";
11 const char kAttributeMaxHeight[] = "maxheight"; 11 const char kAttributeMaxHeight[] = "maxheight";
12 const char kAttributeMaxWidth[] = "maxwidth"; 12 const char kAttributeMaxWidth[] = "maxwidth";
13 const char kAttributeMinHeight[] = "minheight"; 13 const char kAttributeMinHeight[] = "minheight";
14 const char kAttributeMinWidth[] = "minwidth"; 14 const char kAttributeMinWidth[] = "minwidth";
15 const char kElementWidth[] = "elementWidth"; 15 const char kElementWidth[] = "elementWidth";
16 const char kElementHeight[] = "elementHeight"; 16 const char kElementHeight[] = "elementHeight";
17 17
18 // Events. 18 // Events.
19 const char kEventResize[] = "guestViewInternal.onResize"; 19 const char kEventResize[] = "guestViewInternal.onResize";
20 20
21 // Parameters/properties on events. 21 // Parameters/properties on events.
22 const char kContentWindowID[] = "contentWindowId";
23 const char kID[] = "id";
22 const char kIsTopLevel[] = "isTopLevel"; 24 const char kIsTopLevel[] = "isTopLevel";
23 const char kNewWidth[] = "newWidth"; 25 const char kNewWidth[] = "newWidth";
24 const char kNewHeight[] = "newHeight"; 26 const char kNewHeight[] = "newHeight";
25 const char kOldWidth[] = "oldWidth"; 27 const char kOldWidth[] = "oldWidth";
26 const char kOldHeight[] = "oldHeight"; 28 const char kOldHeight[] = "oldHeight";
27 const char kReason[] = "reason"; 29 const char kReason[] = "reason";
28 const char kUrl[] = "url"; 30 const char kUrl[] = "url";
29 const char kUserGesture[] = "userGesture"; 31 const char kUserGesture[] = "userGesture";
30 32
31 // Initialization parameters. 33 // Initialization parameters.
32 const char kParameterApi[] = "api"; 34 const char kParameterApi[] = "api";
33 const char kParameterInstanceId[] = "instanceId"; 35 const char kParameterInstanceId[] = "instanceId";
34 36
35 // Other. 37 // Other.
36 const char kGuestViewManagerKeyName[] = "guest_view_manager"; 38 const char kGuestViewManagerKeyName[] = "guest_view_manager";
37 const int kInstanceIDNone = 0; 39 const int kInstanceIDNone = 0;
38 const int kDefaultWidth = 300; 40 const int kDefaultWidth = 300;
39 const int kDefaultHeight = 300; 41 const int kDefaultHeight = 300;
40 42
41 } // namespace guestview 43 } // namespace guestview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698