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
3 // found in the LICENSE file.
5 #include "extensions/common/guest_view/guest_view_constants.h"
9 // Sizing attributes/parameters.
10 const char kAttributeAutoSize
[] = "autosize";
11 const char kAttributeMaxHeight
[] = "maxheight";
12 const char kAttributeMaxWidth
[] = "maxwidth";
13 const char kAttributeMinHeight
[] = "minheight";
14 const char kAttributeMinWidth
[] = "minwidth";
15 const char kElementWidth
[] = "elementWidth";
16 const char kElementHeight
[] = "elementHeight";
19 const char kEventResize
[] = "guestViewInternal.onResize";
21 // Parameters/properties on events.
22 const char kIsTopLevel
[] = "isTopLevel";
23 const char kNewWidth
[] = "newWidth";
24 const char kNewHeight
[] = "newHeight";
25 const char kOldWidth
[] = "oldWidth";
26 const char kOldHeight
[] = "oldHeight";
27 const char kReason
[] = "reason";
28 const char kUrl
[] = "url";
29 const char kUserGesture
[] = "userGesture";
31 // Initialization parameters.
32 const char kParameterApi
[] = "api";
33 const char kParameterInstanceId
[] = "instanceId";
36 const char kGuestViewManagerKeyName
[] = "guest_view_manager";
37 const int kInstanceIDNone
= 0;
38 const int kDefaultWidth
= 300;
39 const int kDefaultHeight
= 300;
41 } // namespace guestview