| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual WebKit::WebFrame* mainFrame(); | 99 virtual WebKit::WebFrame* mainFrame(); |
| 100 virtual WebKit::WebFrame* findFrameByName( | 100 virtual WebKit::WebFrame* findFrameByName( |
| 101 const WebKit::WebString& name, WebKit::WebFrame* relative_to_frame); | 101 const WebKit::WebString& name, WebKit::WebFrame* relative_to_frame); |
| 102 virtual WebKit::WebFrame* focusedFrame(); | 102 virtual WebKit::WebFrame* focusedFrame(); |
| 103 virtual void setFocusedFrame(WebKit::WebFrame* frame); | 103 virtual void setFocusedFrame(WebKit::WebFrame* frame); |
| 104 virtual void setInitialFocus(bool reverse); | 104 virtual void setInitialFocus(bool reverse); |
| 105 virtual void clearFocusedNode(); | 105 virtual void clearFocusedNode(); |
| 106 virtual void zoomIn(bool text_only); | 106 virtual void zoomIn(bool text_only); |
| 107 virtual void zoomOut(bool text_only); | 107 virtual void zoomOut(bool text_only); |
| 108 virtual void zoomDefault(); | 108 virtual void zoomDefault(); |
| 109 virtual void performMediaPlayerAction( |
| 110 const WebKit::WebMediaPlayerAction& action, |
| 111 const WebKit::WebPoint& location); |
| 109 virtual void copyImageAt(const WebKit::WebPoint& point); | 112 virtual void copyImageAt(const WebKit::WebPoint& point); |
| 110 virtual void dragSourceEndedAt( | 113 virtual void dragSourceEndedAt( |
| 111 const WebKit::WebPoint& client_point, | 114 const WebKit::WebPoint& client_point, |
| 112 const WebKit::WebPoint& screen_point, | 115 const WebKit::WebPoint& screen_point, |
| 113 WebKit::WebDragOperation operation); | 116 WebKit::WebDragOperation operation); |
| 114 virtual void dragSourceMovedTo( | 117 virtual void dragSourceMovedTo( |
| 115 const WebKit::WebPoint& client_point, | 118 const WebKit::WebPoint& client_point, |
| 116 const WebKit::WebPoint& screen_point); | 119 const WebKit::WebPoint& screen_point); |
| 117 virtual void dragSourceSystemDragEnded(); | 120 virtual void dragSourceSystemDragEnded(); |
| 118 virtual WebKit::WebDragOperation dragTargetDragEnter( | 121 virtual WebKit::WebDragOperation dragTargetDragEnter( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 137 // WebView methods: | 140 // WebView methods: |
| 138 virtual WebViewDelegate* GetDelegate(); | 141 virtual WebViewDelegate* GetDelegate(); |
| 139 virtual void AutofillSuggestionsForNode( | 142 virtual void AutofillSuggestionsForNode( |
| 140 int64 node_id, | 143 int64 node_id, |
| 141 const std::vector<std::wstring>& suggestions, | 144 const std::vector<std::wstring>& suggestions, |
| 142 int default_suggestion_index); | 145 int default_suggestion_index); |
| 143 virtual void HideAutofillPopup(); | 146 virtual void HideAutofillPopup(); |
| 144 virtual void SetIgnoreInputEvents(bool new_value); | 147 virtual void SetIgnoreInputEvents(bool new_value); |
| 145 virtual WebDevToolsAgent* GetWebDevToolsAgent(); | 148 virtual WebDevToolsAgent* GetWebDevToolsAgent(); |
| 146 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl(); | 149 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl(); |
| 147 virtual void MediaPlayerActionAt(int x, | |
| 148 int y, | |
| 149 const MediaPlayerAction& action); | |
| 150 | 150 |
| 151 // WebViewImpl | 151 // WebViewImpl |
| 152 | 152 |
| 153 const WebKit::WebPoint& last_mouse_down_point() const { | 153 const WebKit::WebPoint& last_mouse_down_point() const { |
| 154 return last_mouse_down_point_; | 154 return last_mouse_down_point_; |
| 155 } | 155 } |
| 156 | 156 |
| 157 WebCore::Frame* GetFocusedWebCoreFrame(); | 157 WebCore::Frame* GetFocusedWebCoreFrame(); |
| 158 | 158 |
| 159 // Returns the currently focused Node or NULL if no node has focus. | 159 // Returns the currently focused Node or NULL if no node has focus. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 static const WebKit::WebInputEvent* current_input_event() { | 413 static const WebKit::WebInputEvent* current_input_event() { |
| 414 return g_current_input_event; | 414 return g_current_input_event; |
| 415 } | 415 } |
| 416 private: | 416 private: |
| 417 static const WebKit::WebInputEvent* g_current_input_event; | 417 static const WebKit::WebInputEvent* g_current_input_event; |
| 418 | 418 |
| 419 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); | 419 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 422 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| OLD | NEW |