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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 147246: Linux: middle-click to navigate (Closed)
Patch Set: ... Created 11 years, 5 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 struct WebDropData; 36 struct WebDropData;
37 37
38 namespace base { 38 namespace base {
39 class WaitableEvent; 39 class WaitableEvent;
40 } 40 }
41 41
42 namespace IPC { 42 namespace IPC {
43 class Message; 43 class Message;
44 } 44 }
45 45
46 namespace WebKit {
47 class WebMouseEvent;
48 }
49
46 namespace webkit_glue { 50 namespace webkit_glue {
47 class AutofillForm; 51 class AutofillForm;
48 struct WebApplicationInfo; 52 struct WebApplicationInfo;
49 } 53 }
50 54
51 // 55 //
52 // RenderViewHostDelegate 56 // RenderViewHostDelegate
53 // 57 //
54 // An interface implemented by an object interested in knowing about the state 58 // An interface implemented by an object interested in knowing about the state
55 // of the RenderViewHost. 59 // of the RenderViewHost.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // |is_drop_target| is true if the mouse is over a valid drop target. 114 // |is_drop_target| is true if the mouse is over a valid drop target.
111 virtual void UpdateDragCursor(bool is_drop_target) = 0; 115 virtual void UpdateDragCursor(bool is_drop_target) = 0;
112 116
113 // Notification that view for this delegate got the focus. 117 // Notification that view for this delegate got the focus.
114 virtual void GotFocus() = 0; 118 virtual void GotFocus() = 0;
115 119
116 // Callback to inform the browser it should take back focus. If reverse is 120 // Callback to inform the browser it should take back focus. If reverse is
117 // true, it means the focus was retrieved by doing a Shift-Tab. 121 // true, it means the focus was retrieved by doing a Shift-Tab.
118 virtual void TakeFocus(bool reverse) = 0; 122 virtual void TakeFocus(bool reverse) = 0;
119 123
120 // Callback to inform the browser that the renderer did not process the 124 // Callbacks to inform the browser that the renderer did not process the
121 // specified events. This gives an opportunity to the browser to process the 125 // specified events. This gives an opportunity to the browser to process the
122 // event (used for keyboard shortcuts). 126 // event.
127
128 // used for keyboard shortcuts).
123 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; 129 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0;
130 // used for middle-click to navigate
131 virtual void HandleMouseButtonEvent(const WebKit::WebMouseEvent* event) { }
124 132
125 // Notifications about mouse events in this view. This is useful for 133 // Notifications about mouse events in this view. This is useful for
126 // implementing global 'on hover' features external to the view. 134 // implementing global 'on hover' features external to the view.
127 virtual void HandleMouseEvent() = 0; 135 virtual void HandleMouseEvent() = 0;
128 virtual void HandleMouseLeave() = 0; 136 virtual void HandleMouseLeave() = 0;
129 137
130 // The content's intrinsic width (prefWidth) changed. 138 // The content's intrinsic width (prefWidth) changed.
131 virtual void UpdatePreferredWidth(int pref_width) = 0; 139 virtual void UpdatePreferredWidth(int pref_width) = 0;
132 }; 140 };
133 141
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 int number_of_matches, 457 int number_of_matches,
450 const gfx::Rect& selection_rect, 458 const gfx::Rect& selection_rect,
451 int active_match_ordinal, 459 int active_match_ordinal,
452 bool final_update) { } 460 bool final_update) { }
453 461
454 // The RenderView has inserted one css file into page. 462 // The RenderView has inserted one css file into page.
455 virtual void DidInsertCSS() { } 463 virtual void DidInsertCSS() { }
456 }; 464 };
457 465
458 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 466 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698