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

Side by Side Diff: sky/engine/core/page/Chrome.cpp

Issue 878673005: Get rid of Chrome, use Page. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/page/Chrome.h ('k') | sky/engine/core/page/ChromeClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 */
21
22 #include "sky/engine/config.h"
23 #include "sky/engine/core/page/Chrome.h"
24
25 #include "sky/engine/core/dom/Document.h"
26 #include "sky/engine/core/frame/LocalFrame.h"
27 #include "sky/engine/core/page/ChromeClient.h"
28 #include "sky/engine/core/rendering/HitTestResult.h"
29 #include "sky/engine/platform/Logging.h"
30 #include "sky/engine/platform/geometry/FloatRect.h"
31 #include "sky/engine/public/platform/WebScreenInfo.h"
32 #include "sky/engine/wtf/PassRefPtr.h"
33 #include "sky/engine/wtf/Vector.h"
34
35 namespace blink {
36
37 Chrome::Chrome(ChromeClient* client)
38 : m_client(client)
39 {
40 ASSERT(m_client);
41 }
42
43 Chrome::~Chrome()
44 {
45 }
46
47 PassOwnPtr<Chrome> Chrome::create(ChromeClient* client)
48 {
49 return adoptPtr(new Chrome(client));
50 }
51
52 IntRect Chrome::rootViewToScreen(const IntRect& rect) const
53 {
54 return m_client->rootViewToScreen(rect);
55 }
56
57 blink::WebScreenInfo Chrome::screenInfo() const
58 {
59 return m_client->screenInfo();
60 }
61
62 void Chrome::setWindowRect(const FloatRect& rect) const
63 {
64 m_client->setWindowRect(rect);
65 }
66
67 FloatRect Chrome::windowRect() const
68 {
69 return m_client->windowRect();
70 }
71
72 FloatRect Chrome::pageRect() const
73 {
74 return m_client->pageRect();
75 }
76
77 void Chrome::focus() const
78 {
79 m_client->focus();
80 }
81
82 bool Chrome::canTakeFocus(FocusType type) const
83 {
84 return m_client->canTakeFocus(type);
85 }
86
87 void Chrome::takeFocus(FocusType type) const
88 {
89 m_client->takeFocus(type);
90 }
91
92 void Chrome::focusedNodeChanged(Node* node) const
93 {
94 m_client->focusedNodeChanged(node);
95 }
96
97 void Chrome::show(NavigationPolicy policy) const
98 {
99 m_client->show(policy);
100 }
101
102 void Chrome::setCursor(const Cursor& cursor)
103 {
104 m_client->setCursor(cursor);
105 }
106
107 void Chrome::scheduleVisualUpdate()
108 {
109 m_client->scheduleVisualUpdate();
110 }
111
112 void Chrome::willBeDestroyed()
113 {
114 m_client->chromeDestroyed();
115 }
116
117 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/page/Chrome.h ('k') | sky/engine/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698