Add more checks to investigate SupervisedUserPrefStore crash at startup.
[chromium-blink-merge.git] / extensions / common / guest_view / guest_view_constants.cc
blob3ce10726c4b40dea27b99a44132aac82846c383a
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"
7 namespace guestview {
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";
18 // Events.
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";
35 // Other.
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