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

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

Issue 251051: Move various methods from glue/webview.h to api/public/WebView.h... (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.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual bool handleCompositionEvent(WebKit::WebCompositionCommand command, 74 virtual bool handleCompositionEvent(WebKit::WebCompositionCommand command,
75 int cursor_position, 75 int cursor_position,
76 int target_start, 76 int target_start,
77 int target_end, 77 int target_end,
78 const WebKit::WebString& text); 78 const WebKit::WebString& text);
79 virtual bool queryCompositionStatus(bool* enabled, 79 virtual bool queryCompositionStatus(bool* enabled,
80 WebKit::WebRect* caret_rect); 80 WebKit::WebRect* caret_rect);
81 virtual void setTextDirection(WebKit::WebTextDirection direction); 81 virtual void setTextDirection(WebKit::WebTextDirection direction);
82 82
83 // WebView methods: 83 // WebView methods:
84 virtual void initializeMainFrame(WebKit::WebFrameClient*);
84 virtual WebKit::WebSettings* settings(); 85 virtual WebKit::WebSettings* settings();
85 virtual WebKit::WebString pageEncoding() const; 86 virtual WebKit::WebString pageEncoding() const;
86 virtual void setPageEncoding(const WebKit::WebString& encoding); 87 virtual void setPageEncoding(const WebKit::WebString& encoding);
88 virtual bool isTransparent() const;
89 virtual void setIsTransparent(bool value);
90 virtual bool tabsToLinks() const;
91 virtual void setTabsToLinks(bool value);
92 virtual bool tabKeyCyclesThroughElements() const;
93 virtual void setTabKeyCyclesThroughElements(bool value);
94 virtual bool isActive() const;
95 virtual void setIsActive(bool value);
87 virtual bool dispatchBeforeUnloadEvent(); 96 virtual bool dispatchBeforeUnloadEvent();
88 virtual void dispatchUnloadEvent(); 97 virtual void dispatchUnloadEvent();
89 virtual WebKit::WebFrame* mainFrame(); 98 virtual WebKit::WebFrame* mainFrame();
90 virtual WebKit::WebFrame* findFrameByName( 99 virtual WebKit::WebFrame* findFrameByName(
91 const WebKit::WebString& name, WebKit::WebFrame* relative_to_frame); 100 const WebKit::WebString& name, WebKit::WebFrame* relative_to_frame);
92 virtual WebKit::WebFrame* focusedFrame(); 101 virtual WebKit::WebFrame* focusedFrame();
93 virtual void setFocusedFrame(WebKit::WebFrame* frame); 102 virtual void setFocusedFrame(WebKit::WebFrame* frame);
94 virtual void setInitialFocus(bool reverse); 103 virtual void setInitialFocus(bool reverse);
95 virtual void clearFocusedNode(); 104 virtual void clearFocusedNode();
96 virtual void zoomIn(bool text_only); 105 virtual void zoomIn(bool text_only);
(...skipping 15 matching lines...) Expand all
112 WebKit::WebDragOperationsMask operations_allowed); 121 WebKit::WebDragOperationsMask operations_allowed);
113 virtual WebKit::WebDragOperation dragTargetDragOver( 122 virtual WebKit::WebDragOperation dragTargetDragOver(
114 const WebKit::WebPoint& client_point, 123 const WebKit::WebPoint& client_point,
115 const WebKit::WebPoint& screen_point, 124 const WebKit::WebPoint& screen_point,
116 WebKit::WebDragOperationsMask operations_allowed); 125 WebKit::WebDragOperationsMask operations_allowed);
117 virtual void dragTargetDragLeave(); 126 virtual void dragTargetDragLeave();
118 virtual void dragTargetDrop( 127 virtual void dragTargetDrop(
119 const WebKit::WebPoint& client_point, 128 const WebKit::WebPoint& client_point,
120 const WebKit::WebPoint& screen_point); 129 const WebKit::WebPoint& screen_point);
121 virtual int dragIdentity(); 130 virtual int dragIdentity();
131 virtual bool setDropEffect(bool accept);
122 virtual void inspectElementAt(const WebKit::WebPoint& point); 132 virtual void inspectElementAt(const WebKit::WebPoint& point);
123 133
124 // WebView methods: 134 // WebView methods:
125 virtual void InitializeMainFrame(WebKit::WebFrameClient* frame_client);
126 virtual WebViewDelegate* GetDelegate(); 135 virtual WebViewDelegate* GetDelegate();
127 virtual void SetTabKeyCyclesThroughElements(bool value);
128 virtual WebKit::WebFrame* GetPreviousFrameBefore(WebKit::WebFrame* frame,
129 bool wrap);
130 virtual WebKit::WebFrame* GetNextFrameAfter(WebKit::WebFrame* frame,
131 bool wrap);
132 virtual void StopLoading();
133 virtual void SetBackForwardListSize(int size);
134 virtual const std::wstring& GetInspectorSettings() const; 136 virtual const std::wstring& GetInspectorSettings() const;
135 virtual void SetInspectorSettings(const std::wstring& settings); 137 virtual void SetInspectorSettings(const std::wstring& settings);
136 virtual void ShowJavaScriptConsole();
137 virtual bool SetDropEffect(bool accept);
138 virtual void AutofillSuggestionsForNode( 138 virtual void AutofillSuggestionsForNode(
139 int64 node_id, 139 int64 node_id,
140 const std::vector<std::wstring>& suggestions, 140 const std::vector<std::wstring>& suggestions,
141 int default_suggestion_index); 141 int default_suggestion_index);
142 virtual void HideAutofillPopup(); 142 virtual void HideAutofillPopup();
143 virtual void SetIgnoreInputEvents(bool new_value); 143 virtual void SetIgnoreInputEvents(bool new_value);
144
145 virtual WebDevToolsAgent* GetWebDevToolsAgent(); 144 virtual WebDevToolsAgent* GetWebDevToolsAgent();
146 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl(); 145 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl();
147
148 virtual void SetIsTransparent(bool is_transparent);
149 virtual bool GetIsTransparent() const;
150
151 virtual void MediaPlayerActionAt(int x, 146 virtual void MediaPlayerActionAt(int x,
152 int y, 147 int y,
153 const MediaPlayerAction& action); 148 const MediaPlayerAction& action);
154 149
155 virtual void SetActive(bool active);
156 virtual bool IsActive();
157
158 // WebViewImpl 150 // WebViewImpl
159 151
160 const WebKit::WebPoint& last_mouse_down_point() const { 152 const WebKit::WebPoint& last_mouse_down_point() const {
161 return last_mouse_down_point_; 153 return last_mouse_down_point_;
162 } 154 }
163 155
164 WebCore::Frame* GetFocusedWebCoreFrame(); 156 WebCore::Frame* GetFocusedWebCoreFrame();
165 157
166 // Returns the currently focused Node or NULL if no node has focus. 158 // Returns the currently focused Node or NULL if no node has focus.
167 WebCore::Node* GetFocusedNode(); 159 WebCore::Node* GetFocusedNode();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void HideAutoCompletePopup(); 235 void HideAutoCompletePopup();
244 void AutoCompletePopupDidHide(); 236 void AutoCompletePopupDidHide();
245 237
246 // Converts |x|, |y| from window coordinates to contents coordinates and gets 238 // Converts |x|, |y| from window coordinates to contents coordinates and gets
247 // the underlying Node for them. 239 // the underlying Node for them.
248 WebCore::Node* GetNodeForWindowPos(int x, int y); 240 WebCore::Node* GetNodeForWindowPos(int x, int y);
249 241
250 virtual void SetSpellingPanelVisibility(bool is_visible); 242 virtual void SetSpellingPanelVisibility(bool is_visible);
251 virtual bool GetSpellingPanelVisibility(); 243 virtual bool GetSpellingPanelVisibility();
252 244
253 virtual void SetTabsToLinks(bool enable);
254 virtual bool GetTabsToLinks() const;
255
256 #if ENABLE(NOTIFICATIONS) 245 #if ENABLE(NOTIFICATIONS)
257 // Returns the provider of desktop notifications. 246 // Returns the provider of desktop notifications.
258 WebKit::NotificationPresenterImpl* GetNotificationPresenter(); 247 WebKit::NotificationPresenterImpl* GetNotificationPresenter();
259 #endif 248 #endif
260 249
261 // Tries to scroll a frame or any parent of a frame. Returns true if the view 250 // Tries to scroll a frame or any parent of a frame. Returns true if the view
262 // was scrolled. 251 // was scrolled.
263 bool PropagateScroll(WebCore::ScrollDirection scroll_direction, 252 bool PropagateScroll(WebCore::ScrollDirection scroll_direction,
264 WebCore::ScrollGranularity scroll_granularity); 253 WebCore::ScrollGranularity scroll_granularity);
265 254
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 static const WebKit::WebInputEvent* current_input_event() { 408 static const WebKit::WebInputEvent* current_input_event() {
420 return g_current_input_event; 409 return g_current_input_event;
421 } 410 }
422 private: 411 private:
423 static const WebKit::WebInputEvent* g_current_input_event; 412 static const WebKit::WebInputEvent* g_current_input_event;
424 413
425 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); 414 DISALLOW_COPY_AND_ASSIGN(WebViewImpl);
426 }; 415 };
427 416
428 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ 417 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698