Don't preload rarely seen large images
[chromium-blink-merge.git] / components / guest_view / common / guest_view_constants.cc
blobe68c3b8340e7ff707d3c8e805767740e537df2e3
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 "components/guest_view/common/guest_view_constants.h"
7 namespace guest_view {
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";
17 const char kElementSizeIsLogical[] = "elementSizeIsLogical";
19 // Events.
20 const char kEventResize[] = "guestViewInternal.onResize";
22 // Parameters/properties on events.
23 const char kCode[] = "code";
24 const char kContentWindowID[] = "contentWindowId";
25 const char kID[] = "id";
26 const char kIsTopLevel[] = "isTopLevel";
27 const char kNewWidth[] = "newWidth";
28 const char kNewHeight[] = "newHeight";
29 const char kOldWidth[] = "oldWidth";
30 const char kOldHeight[] = "oldHeight";
31 const char kReason[] = "reason";
32 const char kUrl[] = "url";
33 const char kUserGesture[] = "userGesture";
35 // Initialization parameters.
36 const char kParameterApi[] = "api";
37 const char kParameterInstanceId[] = "instanceId";
39 // Other.
40 const char kGuestViewManagerKeyName[] = "guest_view_manager";
41 const int kInstanceIDNone = 0;
42 const int kDefaultWidth = 300;
43 const int kDefaultHeight = 300;
45 } // namespace guestview