| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "AccessibilityObject.h" | 10 #include "AccessibilityObject.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 bool ChromeClientImpl::menubarVisible() { | 306 bool ChromeClientImpl::menubarVisible() { |
| 307 return menubar_visible_; | 307 return menubar_visible_; |
| 308 } | 308 } |
| 309 | 309 |
| 310 void ChromeClientImpl::setResizable(bool value) { | 310 void ChromeClientImpl::setResizable(bool value) { |
| 311 resizable_ = value; | 311 resizable_ = value; |
| 312 } | 312 } |
| 313 | 313 |
| 314 void ChromeClientImpl::addMessageToConsole(WebCore::MessageSource source, | 314 void ChromeClientImpl::addMessageToConsole(WebCore::MessageSource source, |
| 315 WebCore::MessageType type, |
| 315 WebCore::MessageLevel level, | 316 WebCore::MessageLevel level, |
| 316 const WebCore::String& message, | 317 const WebCore::String& message, |
| 317 unsigned int line_no, | 318 unsigned int line_no, |
| 318 const WebCore::String& source_id) { | 319 const WebCore::String& source_id) { |
| 319 WebViewDelegate* delegate = webview_->delegate(); | 320 WebViewDelegate* delegate = webview_->delegate(); |
| 320 if (delegate) { | 321 if (delegate) { |
| 321 std::wstring wstr_message = webkit_glue::StringToStdWString(message); | 322 std::wstring wstr_message = webkit_glue::StringToStdWString(message); |
| 322 std::wstring wstr_source_id = webkit_glue::StringToStdWString(source_id); | 323 std::wstring wstr_source_id = webkit_glue::StringToStdWString(source_id); |
| 323 delegate->AddMessageToConsole(webview_, wstr_message, | 324 delegate->AddMessageToConsole(webview_, wstr_message, |
| 324 line_no, wstr_source_id); | 325 line_no, wstr_source_id); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 // EventHandler.cpp and since we don't want that we set a flag indicating | 622 // EventHandler.cpp and since we don't want that we set a flag indicating |
| 622 // that the next SetCursor call is to be ignored. | 623 // that the next SetCursor call is to be ignored. |
| 623 ignore_next_set_cursor_ = true; | 624 ignore_next_set_cursor_ = true; |
| 624 } | 625 } |
| 625 | 626 |
| 626 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { | 627 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { |
| 627 WebViewDelegate* delegate = webview_->delegate(); | 628 WebViewDelegate* delegate = webview_->delegate(); |
| 628 if (delegate) | 629 if (delegate) |
| 629 delegate->OnNavStateChanged(webview_); | 630 delegate->OnNavStateChanged(webview_); |
| 630 } | 631 } |
| OLD | NEW |