summaryrefslogtreecommitdiffstats
path: root/components/guest_view/common/guest_view_constants.cc
blob: e68c3b8340e7ff707d3c8e805767740e537df2e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/guest_view/common/guest_view_constants.h"

namespace guest_view {

// Sizing attributes/parameters.
const char kAttributeAutoSize[] = "autosize";
const char kAttributeMaxHeight[] = "maxheight";
const char kAttributeMaxWidth[] = "maxwidth";
const char kAttributeMinHeight[] = "minheight";
const char kAttributeMinWidth[] = "minwidth";
const char kElementWidth[] = "elementWidth";
const char kElementHeight[] = "elementHeight";
const char kElementSizeIsLogical[] = "elementSizeIsLogical";

// Events.
const char kEventResize[] = "guestViewInternal.onResize";

// Parameters/properties on events.
const char kCode[] = "code";
const char kContentWindowID[] = "contentWindowId";
const char kID[] = "id";
const char kIsTopLevel[] = "isTopLevel";
const char kNewWidth[] = "newWidth";
const char kNewHeight[] = "newHeight";
const char kOldWidth[] = "oldWidth";
const char kOldHeight[] = "oldHeight";
const char kReason[] = "reason";
const char kUrl[] = "url";
const char kUserGesture[] = "userGesture";

// Initialization parameters.
const char kParameterApi[] = "api";
const char kParameterInstanceId[] = "instanceId";

// Other.
const char kGuestViewManagerKeyName[] = "guest_view_manager";
const int kInstanceIDNone = 0;
const int kDefaultWidth = 300;
const int kDefaultHeight = 300;

}  // namespace guestview