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

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

Issue 115374: Adds propagation and handling of render-side focus events, for the benefit of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // WebViewImpl 131 // WebViewImpl
132 132
133 const WebKit::WebSize& size() const { return size_; } 133 const WebKit::WebSize& size() const { return size_; }
134 134
135 const WebKit::WebPoint& last_mouse_down_point() const { 135 const WebKit::WebPoint& last_mouse_down_point() const {
136 return last_mouse_down_point_; 136 return last_mouse_down_point_;
137 } 137 }
138 138
139 WebCore::Frame* GetFocusedWebCoreFrame(); 139 WebCore::Frame* GetFocusedWebCoreFrame();
140 140
141 // Returns the currently focused Node or NULL if no node has focus.
142 WebCore::Node* GetFocusedNode();
143
141 static WebViewImpl* FromPage(WebCore::Page* page); 144 static WebViewImpl* FromPage(WebCore::Page* page);
142 145
143 WebViewDelegate* delegate() { 146 WebViewDelegate* delegate() {
144 return delegate_.get(); 147 return delegate_.get();
145 } 148 }
146 149
147 // Returns the page object associated with this view. This may be NULL when 150 // Returns the page object associated with this view. This may be NULL when
148 // the page is shutting down, but will be valid at all other times. 151 // the page is shutting down, but will be valid at all other times.
149 WebCore::Page* page() const { 152 WebCore::Page* page() const {
150 return page_.get(); 153 return page_.get();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 281
279 // Removes fetcher from the set of pending image fetchers and deletes it. 282 // Removes fetcher from the set of pending image fetchers and deletes it.
280 // This is invoked after the download is completed (or fails). 283 // This is invoked after the download is completed (or fails).
281 void DeleteImageResourceFetcher(ImageResourceFetcher* fetcher); 284 void DeleteImageResourceFetcher(ImageResourceFetcher* fetcher);
282 285
283 // Converts |pos| from window coordinates to contents coordinates and gets 286 // Converts |pos| from window coordinates to contents coordinates and gets
284 // the HitTestResult for it. 287 // the HitTestResult for it.
285 WebCore::HitTestResult HitTestResultForWindowPos( 288 WebCore::HitTestResult HitTestResultForWindowPos(
286 const WebCore::IntPoint& pos); 289 const WebCore::IntPoint& pos);
287 290
288 // Returns the currently focused Node or NULL if no node has focus.
289 WebCore::Node* GetFocusedNode();
290
291 // ImageResourceFetchers schedule via DownloadImage. 291 // ImageResourceFetchers schedule via DownloadImage.
292 std::set<ImageResourceFetcher*> image_fetchers_; 292 std::set<ImageResourceFetcher*> image_fetchers_;
293 293
294 // The point relative to the client area where the mouse was last pressed 294 // The point relative to the client area where the mouse was last pressed
295 // down. This is used by the drag client to determine what was under the 295 // down. This is used by the drag client to determine what was under the
296 // mouse when the drag was initiated. We need to track this here in 296 // mouse when the drag was initiated. We need to track this here in
297 // WebViewImpl since DragClient::startDrag does not pass the position the 297 // WebViewImpl since DragClient::startDrag does not pass the position the
298 // mouse was at when the drag was initiated, only the current point, which 298 // mouse was at when the drag was initiated, only the current point, which
299 // can be misleading as it is usually not over the element the user actually 299 // can be misleading as it is usually not over the element the user actually
300 // dragged by the time a drag is initiated. 300 // dragged by the time a drag is initiated.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 static const WebKit::WebInputEvent* current_input_event() { 364 static const WebKit::WebInputEvent* current_input_event() {
365 return g_current_input_event; 365 return g_current_input_event;
366 } 366 }
367 private: 367 private:
368 static const WebKit::WebInputEvent* g_current_input_event; 368 static const WebKit::WebInputEvent* g_current_input_event;
369 369
370 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); 370 DISALLOW_COPY_AND_ASSIGN(WebViewImpl);
371 }; 371 };
372 372
373 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ 373 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_
OLDNEW
« webkit/glue/webaccessibilitymanager_impl.cc ('K') | « webkit/glue/webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698