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

Side by Side Diff: webkit/glue/chromium_bridge_impl.cc

Issue 42125: Chrome-side changes to use registerURLSchemeNoAccess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "ChromiumBridge.h" 6 #include "ChromiumBridge.h"
7 7
8 #include "BitmapImage.h" 8 #include "BitmapImage.h"
9 #include "Cursor.h" 9 #include "Cursor.h"
10 #include "Frame.h" 10 #include "Frame.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 IntRect ChromiumBridge::screenRect(Widget* widget) { 187 IntRect ChromiumBridge::screenRect(Widget* widget) {
188 return webkit_glue::ToIntRect( 188 return webkit_glue::ToIntRect(
189 webkit_glue::GetScreenInfo(ToNativeId(widget)).rect); 189 webkit_glue::GetScreenInfo(ToNativeId(widget)).rect);
190 } 190 }
191 191
192 IntRect ChromiumBridge::screenAvailableRect(Widget* widget) { 192 IntRect ChromiumBridge::screenAvailableRect(Widget* widget) {
193 return webkit_glue::ToIntRect( 193 return webkit_glue::ToIntRect(
194 webkit_glue::GetScreenInfo(ToNativeId(widget)).available_rect); 194 webkit_glue::GetScreenInfo(ToNativeId(widget)).available_rect);
195 } 195 }
196 196
197 // URL ------------------------------------------------------------------------
198
199 KURL ChromiumBridge::inspectorURL() {
200 return webkit_glue::GURLToKURL(webkit_glue::GetInspectorURL());
201 }
202
203 // Widget --------------------------------------------------------------------- 197 // Widget ---------------------------------------------------------------------
204 198
205 void ChromiumBridge::widgetSetCursor(Widget* widget, const Cursor& cursor) { 199 void ChromiumBridge::widgetSetCursor(Widget* widget, const Cursor& cursor) {
206 ChromeClientImpl* chrome_client = ToChromeClient(widget); 200 ChromeClientImpl* chrome_client = ToChromeClient(widget);
207 if (chrome_client) 201 if (chrome_client)
208 chrome_client->SetCursor(WebCursor(cursor.impl())); 202 chrome_client->SetCursor(WebCursor(cursor.impl()));
209 } 203 }
210 204
211 void ChromiumBridge::widgetSetFocus(Widget* widget) { 205 void ChromiumBridge::widgetSetFocus(Widget* widget) {
212 ChromeClientImpl* chrome_client = ToChromeClient(widget); 206 ChromeClientImpl* chrome_client = ToChromeClient(widget);
213 if (chrome_client) 207 if (chrome_client)
214 chrome_client->focus(); 208 chrome_client->focus();
215 } 209 }
216 210
217 } // namespace WebCore 211 } // namespace WebCore
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698