| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |