| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // Hides the autocomplete popup if it is showing. | 241 // Hides the autocomplete popup if it is showing. |
| 242 void HideAutoCompletePopup(); | 242 void HideAutoCompletePopup(); |
| 243 | 243 |
| 244 // Converts |x|, |y| from window coordinates to contents coordinates and gets | 244 // Converts |x|, |y| from window coordinates to contents coordinates and gets |
| 245 // the underlying Node for them. | 245 // the underlying Node for them. |
| 246 WebCore::Node* GetNodeForWindowPos(int x, int y); | 246 WebCore::Node* GetNodeForWindowPos(int x, int y); |
| 247 | 247 |
| 248 virtual void SetSpellingPanelVisibility(bool is_visible); | 248 virtual void SetSpellingPanelVisibility(bool is_visible); |
| 249 virtual bool GetSpellingPanelVisibility(); | 249 virtual bool GetSpellingPanelVisibility(); |
| 250 | 250 |
| 251 virtual void SetTabsToLinks(bool enable); |
| 252 virtual bool GetTabsToLinks() const; |
| 253 |
| 251 #if ENABLE(NOTIFICATIONS) | 254 #if ENABLE(NOTIFICATIONS) |
| 252 // Returns the provider of desktop notifications. | 255 // Returns the provider of desktop notifications. |
| 253 WebKit::NotificationPresenterImpl* GetNotificationPresenter(); | 256 WebKit::NotificationPresenterImpl* GetNotificationPresenter(); |
| 254 #endif | 257 #endif |
| 255 | 258 |
| 256 protected: | 259 protected: |
| 257 friend class WebView; // So WebView::Create can call our constructor | 260 friend class WebView; // So WebView::Create can call our constructor |
| 258 friend class base::RefCounted<WebViewImpl>; | 261 friend class base::RefCounted<WebViewImpl>; |
| 259 | 262 |
| 260 // ImageResourceFetcher::Callback. | 263 // ImageResourceFetcher::Callback. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_; | 399 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_; |
| 397 | 400 |
| 398 scoped_ptr<WebDevToolsAgentImpl> devtools_agent_; | 401 scoped_ptr<WebDevToolsAgentImpl> devtools_agent_; |
| 399 | 402 |
| 400 // Whether the webview is rendering transparently. | 403 // Whether the webview is rendering transparently. |
| 401 bool is_transparent_; | 404 bool is_transparent_; |
| 402 | 405 |
| 403 // Whether the spelling panel is currently being displayed or not. | 406 // Whether the spelling panel is currently being displayed or not. |
| 404 bool spelling_panel_is_visible_; | 407 bool spelling_panel_is_visible_; |
| 405 | 408 |
| 409 // Whether the user can press tab to focus links. |
| 410 bool tabs_to_links_; |
| 411 |
| 406 // Inspector settings. | 412 // Inspector settings. |
| 407 std::wstring inspector_settings_; | 413 std::wstring inspector_settings_; |
| 408 | 414 |
| 409 #if ENABLE(NOTIFICATIONS) | 415 #if ENABLE(NOTIFICATIONS) |
| 410 // The provider of desktop notifications; | 416 // The provider of desktop notifications; |
| 411 WebKit::NotificationPresenterImpl notification_presenter_; | 417 WebKit::NotificationPresenterImpl notification_presenter_; |
| 412 #endif | 418 #endif |
| 413 | 419 |
| 414 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix | 420 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix |
| 415 // WebKit to pass enough information up into ChromeClient::show() so we can | 421 // WebKit to pass enough information up into ChromeClient::show() so we can |
| 416 // decide if the window.open event was caused by a middle-mouse click | 422 // decide if the window.open event was caused by a middle-mouse click |
| 417 public: | 423 public: |
| 418 static const WebKit::WebInputEvent* current_input_event() { | 424 static const WebKit::WebInputEvent* current_input_event() { |
| 419 return g_current_input_event; | 425 return g_current_input_event; |
| 420 } | 426 } |
| 421 private: | 427 private: |
| 422 static const WebKit::WebInputEvent* g_current_input_event; | 428 static const WebKit::WebInputEvent* g_current_input_event; |
| 423 | 429 |
| 424 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); | 430 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); |
| 425 }; | 431 }; |
| 426 | 432 |
| 427 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 433 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| OLD | NEW |