| 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 | 9 |
| 10 #include "Page.h" | 10 #include "Page.h" |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "skia/ext/platform_canvas.h" | 14 #include "skia/ext/platform_canvas.h" |
| 15 #include "webkit/api/public/WebPoint.h" | 15 #include "webkit/api/public/WebPoint.h" |
| 16 #include "webkit/api/public/WebSize.h" | 16 #include "webkit/api/public/WebSize.h" |
| 17 #include "webkit/glue/back_forward_list_client_impl.h" | 17 #include "webkit/glue/back_forward_list_client_impl.h" |
| 18 #include "webkit/glue/image_resource_fetcher.h" | |
| 19 #include "webkit/glue/webframe_impl.h" | 18 #include "webkit/glue/webframe_impl.h" |
| 20 #include "webkit/glue/webpreferences.h" | 19 #include "webkit/glue/webpreferences.h" |
| 21 #include "webkit/glue/webview.h" | 20 #include "webkit/glue/webview.h" |
| 22 | 21 |
| 23 namespace WebCore { | 22 namespace WebCore { |
| 24 class ChromiumDataObject; | 23 class ChromiumDataObject; |
| 25 class Frame; | 24 class Frame; |
| 26 class HistoryItem; | 25 class HistoryItem; |
| 27 class HitTestResult; | 26 class HitTestResult; |
| 28 class KeyboardEvent; | 27 class KeyboardEvent; |
| 29 class Page; | 28 class Page; |
| 30 class PlatformKeyboardEvent; | 29 class PlatformKeyboardEvent; |
| 31 class PopupContainer; | 30 class PopupContainer; |
| 32 class Range; | 31 class Range; |
| 33 class RenderTheme; | 32 class RenderTheme; |
| 34 class Widget; | 33 class Widget; |
| 35 } | 34 } |
| 36 | 35 |
| 37 namespace WebKit { | 36 namespace WebKit { |
| 38 class WebKeyboardEvent; | 37 class WebKeyboardEvent; |
| 39 class WebMouseEvent; | 38 class WebMouseEvent; |
| 40 class WebMouseWheelEvent; | 39 class WebMouseWheelEvent; |
| 41 class WebSettingsImpl; | 40 class WebSettingsImpl; |
| 42 } | 41 } |
| 43 | 42 |
| 43 namespace webkit_glue { |
| 44 class ImageResourceFetcher; |
| 45 } |
| 46 |
| 44 class AutocompletePopupMenuClient; | 47 class AutocompletePopupMenuClient; |
| 45 class SearchableFormData; | 48 class SearchableFormData; |
| 46 class WebHistoryItemImpl; | 49 class WebHistoryItemImpl; |
| 47 class WebDevToolsAgent; | 50 class WebDevToolsAgent; |
| 48 class WebDevToolsAgentImpl; | 51 class WebDevToolsAgentImpl; |
| 49 class WebViewDelegate; | 52 class WebViewDelegate; |
| 50 | 53 |
| 51 class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> { | 54 class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> { |
| 52 public: | 55 public: |
| 53 // WebWidget methods: | 56 // WebWidget methods: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 69 WebKit::WebRect* caret_rect); | 72 WebKit::WebRect* caret_rect); |
| 70 virtual void setTextDirection(WebKit::WebTextDirection direction); | 73 virtual void setTextDirection(WebKit::WebTextDirection direction); |
| 71 | 74 |
| 72 // WebView methods: | 75 // WebView methods: |
| 73 virtual bool ShouldClose(); | 76 virtual bool ShouldClose(); |
| 74 virtual void ClosePage(); | 77 virtual void ClosePage(); |
| 75 virtual WebViewDelegate* GetDelegate(); | 78 virtual WebViewDelegate* GetDelegate(); |
| 76 virtual void SetDelegate(WebViewDelegate*); | 79 virtual void SetDelegate(WebViewDelegate*); |
| 77 virtual void SetUseEditorDelegate(bool value); | 80 virtual void SetUseEditorDelegate(bool value); |
| 78 virtual void SetTabKeyCyclesThroughElements(bool value); | 81 virtual void SetTabKeyCyclesThroughElements(bool value); |
| 79 virtual WebFrame* GetMainFrame(); | 82 virtual WebKit::WebFrame* GetMainFrame(); |
| 80 virtual WebFrame* GetFocusedFrame(); | 83 virtual WebKit::WebFrame* GetFocusedFrame(); |
| 81 virtual void SetFocusedFrame(WebFrame* frame); | 84 virtual void SetFocusedFrame(WebKit::WebFrame* frame); |
| 82 virtual WebFrame* GetFrameWithName(const std::wstring& name); | 85 virtual WebKit::WebFrame* GetFrameWithName(const std::wstring& name); |
| 83 virtual WebFrame* GetPreviousFrameBefore(WebFrame* frame, bool wrap); | 86 virtual WebKit::WebFrame* GetPreviousFrameBefore(WebKit::WebFrame* frame, bool
wrap); |
| 84 virtual WebFrame* GetNextFrameAfter(WebFrame* frame, bool wrap); | 87 virtual WebKit::WebFrame* GetNextFrameAfter(WebKit::WebFrame* frame, bool wrap
); |
| 85 virtual void ClearFocusedNode(); | 88 virtual void ClearFocusedNode(); |
| 86 virtual void StopLoading(); | 89 virtual void StopLoading(); |
| 87 virtual void SetBackForwardListSize(int size); | 90 virtual void SetBackForwardListSize(int size); |
| 88 virtual void SetInitialFocus(bool reverse); | 91 virtual void SetInitialFocus(bool reverse); |
| 89 virtual bool DownloadImage(int id, const GURL& image_url, int image_size); | 92 virtual bool DownloadImage(int id, const GURL& image_url, int image_size); |
| 90 virtual void SetPreferences(const WebPreferences& preferences); | 93 virtual void SetPreferences(const WebPreferences& preferences); |
| 91 virtual const WebPreferences& GetPreferences(); | 94 virtual const WebPreferences& GetPreferences(); |
| 92 virtual WebKit::WebSettings* GetSettings(); | 95 virtual WebKit::WebSettings* GetSettings(); |
| 93 virtual void SetPageEncoding(const std::wstring& encoding_name); | 96 virtual void SetPageEncoding(const std::wstring& encoding_name); |
| 94 virtual std::wstring GetMainFrameEncodingName(); | 97 virtual std::wstring GetMainFrameEncodingName(); |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 static const WebKit::WebInputEvent* current_input_event() { | 370 static const WebKit::WebInputEvent* current_input_event() { |
| 368 return g_current_input_event; | 371 return g_current_input_event; |
| 369 } | 372 } |
| 370 private: | 373 private: |
| 371 static const WebKit::WebInputEvent* g_current_input_event; | 374 static const WebKit::WebInputEvent* g_current_input_event; |
| 372 | 375 |
| 373 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); | 376 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); |
| 374 }; | 377 }; |
| 375 | 378 |
| 376 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 379 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| OLD | NEW |