Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: webkit/glue/webview_impl.h

Issue 287009: Move WebDevToolsAgent{Delegate} into the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class WebSettingsImpl; 50 class WebSettingsImpl;
51 } 51 }
52 52
53 namespace webkit_glue { 53 namespace webkit_glue {
54 class ImageResourceFetcher; 54 class ImageResourceFetcher;
55 } 55 }
56 56
57 class AutocompletePopupMenuClient; 57 class AutocompletePopupMenuClient;
58 class SearchableFormData; 58 class SearchableFormData;
59 class WebHistoryItemImpl; 59 class WebHistoryItemImpl;
60 class WebDevToolsAgent;
61 class WebDevToolsAgentImpl; 60 class WebDevToolsAgentImpl;
62 class WebViewDelegate; 61 class WebViewDelegate;
63 62
64 class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> { 63 class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> {
65 public: 64 public:
66 // WebWidget methods: 65 // WebWidget methods:
67 virtual void close(); 66 virtual void close();
68 virtual WebKit::WebSize size() { return size_; } 67 virtual WebKit::WebSize size() { return size_; }
69 virtual void resize(const WebKit::WebSize& new_size); 68 virtual void resize(const WebKit::WebSize& new_size);
70 virtual void layout(); 69 virtual void layout();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 WebKit::WebDragOperationsMask operations_allowed); 129 WebKit::WebDragOperationsMask operations_allowed);
131 virtual void dragTargetDragLeave(); 130 virtual void dragTargetDragLeave();
132 virtual void dragTargetDrop( 131 virtual void dragTargetDrop(
133 const WebKit::WebPoint& client_point, 132 const WebKit::WebPoint& client_point,
134 const WebKit::WebPoint& screen_point); 133 const WebKit::WebPoint& screen_point);
135 virtual int dragIdentity(); 134 virtual int dragIdentity();
136 virtual bool setDropEffect(bool accept); 135 virtual bool setDropEffect(bool accept);
137 virtual void inspectElementAt(const WebKit::WebPoint& point); 136 virtual void inspectElementAt(const WebKit::WebPoint& point);
138 virtual WebKit::WebString inspectorSettings() const; 137 virtual WebKit::WebString inspectorSettings() const;
139 virtual void setInspectorSettings(const WebKit::WebString& settings); 138 virtual void setInspectorSettings(const WebKit::WebString& settings);
139 virtual WebKit::WebDevToolsAgent* devToolsAgent();
140 virtual WebKit::WebAccessibilityObject accessibilityObject(); 140 virtual WebKit::WebAccessibilityObject accessibilityObject();
141 virtual void applyAutofillSuggestions( 141 virtual void applyAutofillSuggestions(
142 const WebKit::WebNode&, 142 const WebKit::WebNode&,
143 const WebKit::WebVector<WebKit::WebString>& suggestions, 143 const WebKit::WebVector<WebKit::WebString>& suggestions,
144 int defaultSuggestionIndex); 144 int defaultSuggestionIndex);
145 virtual void hideAutofillPopup(); 145 virtual void hideAutofillPopup();
146 146
147 // WebView methods: 147 // WebView methods:
148 virtual void SetIgnoreInputEvents(bool new_value); 148 virtual void SetIgnoreInputEvents(bool new_value);
149 virtual WebDevToolsAgent* GetWebDevToolsAgent();
150 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl(); 149 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl();
151 150
152 // WebViewImpl 151 // WebViewImpl
153 152
154 const WebKit::WebPoint& last_mouse_down_point() const { 153 const WebKit::WebPoint& last_mouse_down_point() const {
155 return last_mouse_down_point_; 154 return last_mouse_down_point_;
156 } 155 }
157 156
158 WebCore::Frame* GetFocusedWebCoreFrame(); 157 WebCore::Frame* GetFocusedWebCoreFrame();
159 158
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Start a system drag and drop operation. 239 // Start a system drag and drop operation.
241 void StartDragging( 240 void StartDragging(
242 const WebKit::WebPoint& event_pos, 241 const WebKit::WebPoint& event_pos,
243 const WebKit::WebDragData& drag_data, 242 const WebKit::WebDragData& drag_data,
244 WebKit::WebDragOperationsMask drag_source_operation_mask); 243 WebKit::WebDragOperationsMask drag_source_operation_mask);
245 244
246 // Hides the autocomplete popup if it is showing. 245 // Hides the autocomplete popup if it is showing.
247 void HideAutoCompletePopup(); 246 void HideAutoCompletePopup();
248 void AutoCompletePopupDidHide(); 247 void AutoCompletePopupDidHide();
249 248
250 // Converts |x|, |y| from window coordinates to contents coordinates and gets
251 // the underlying Node for them.
252 WebCore::Node* GetNodeForWindowPos(int x, int y);
253
254 #if ENABLE(NOTIFICATIONS) 249 #if ENABLE(NOTIFICATIONS)
255 // Returns the provider of desktop notifications. 250 // Returns the provider of desktop notifications.
256 WebKit::NotificationPresenterImpl* GetNotificationPresenter(); 251 WebKit::NotificationPresenterImpl* GetNotificationPresenter();
257 #endif 252 #endif
258 253
259 // Tries to scroll a frame or any parent of a frame. Returns true if the view 254 // Tries to scroll a frame or any parent of a frame. Returns true if the view
260 // was scrolled. 255 // was scrolled.
261 bool PropagateScroll(WebCore::ScrollDirection scroll_direction, 256 bool PropagateScroll(WebCore::ScrollDirection scroll_direction,
262 WebCore::ScrollGranularity scroll_granularity); 257 WebCore::ScrollGranularity scroll_granularity);
263 258
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 static const WebKit::WebInputEvent* current_input_event() { 409 static const WebKit::WebInputEvent* current_input_event() {
415 return g_current_input_event; 410 return g_current_input_event;
416 } 411 }
417 private: 412 private:
418 static const WebKit::WebInputEvent* g_current_input_event; 413 static const WebKit::WebInputEvent* g_current_input_event;
419 414
420 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); 415 DISALLOW_COPY_AND_ASSIGN(WebViewImpl);
421 }; 416 };
422 417
423 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ 418 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698