| 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 "ClipboardUtilitiesChromium.h" | 9 #include "ClipboardUtilitiesChromium.h" |
| 10 #include "Cursor.h" | 10 #include "Cursor.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 237 } |
| 238 | 238 |
| 239 // Font ----------------------------------------------------------------------- | 239 // Font ----------------------------------------------------------------------- |
| 240 | 240 |
| 241 #if defined(OS_WIN) | 241 #if defined(OS_WIN) |
| 242 bool ChromiumBridge::ensureFontLoaded(HFONT font) { | 242 bool ChromiumBridge::ensureFontLoaded(HFONT font) { |
| 243 return webkit_glue::EnsureFontLoaded(font); | 243 return webkit_glue::EnsureFontLoaded(font); |
| 244 } | 244 } |
| 245 #endif | 245 #endif |
| 246 | 246 |
| 247 // Forms ---------------------------------------------------------------------- | |
| 248 | |
| 249 void ChromiumBridge::notifyFormStateChanged(const Document* doc) { | |
| 250 webkit_glue::NotifyFormStateChanged(doc); | |
| 251 } | |
| 252 | |
| 253 // JavaScript ----------------------------------------------------------------- | 247 // JavaScript ----------------------------------------------------------------- |
| 254 | 248 |
| 255 void ChromiumBridge::notifyJSOutOfMemory(Frame* frame) { | 249 void ChromiumBridge::notifyJSOutOfMemory(Frame* frame) { |
| 256 webkit_glue::NotifyJSOutOfMemory(frame); | 250 webkit_glue::NotifyJSOutOfMemory(frame); |
| 257 } | 251 } |
| 258 | 252 |
| 259 // Language ------------------------------------------------------------------- | 253 // Language ------------------------------------------------------------------- |
| 260 | 254 |
| 261 String ChromiumBridge::computedDefaultLanguage() { | 255 String ChromiumBridge::computedDefaultLanguage() { |
| 262 return webkit_glue::StdWStringToString(webkit_glue::GetWebKitLocale()); | 256 return webkit_glue::StdWStringToString(webkit_glue::GetWebKitLocale()); |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 chrome_client->SetCursor(WebCursor(cursor.impl())); | 687 chrome_client->SetCursor(WebCursor(cursor.impl())); |
| 694 } | 688 } |
| 695 | 689 |
| 696 void ChromiumBridge::widgetSetFocus(Widget* widget) { | 690 void ChromiumBridge::widgetSetFocus(Widget* widget) { |
| 697 ChromeClientImpl* chrome_client = ToChromeClient(widget); | 691 ChromeClientImpl* chrome_client = ToChromeClient(widget); |
| 698 if (chrome_client) | 692 if (chrome_client) |
| 699 chrome_client->focus(); | 693 chrome_client->focus(); |
| 700 } | 694 } |
| 701 | 695 |
| 702 } // namespace WebCore | 696 } // namespace WebCore |
| OLD | NEW |