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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 23416003: Add content::RenderWidgetHost::MouseEventCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased changes Created 7 years, 3 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 virtual void ReplaceMisspelling(const string16& word) OVERRIDE; 170 virtual void ReplaceMisspelling(const string16& word) OVERRIDE;
171 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; 171 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE;
172 virtual void RestartHangMonitorTimeout() OVERRIDE; 172 virtual void RestartHangMonitorTimeout() OVERRIDE;
173 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; 173 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE;
174 virtual void Stop() OVERRIDE; 174 virtual void Stop() OVERRIDE;
175 virtual void WasResized() OVERRIDE; 175 virtual void WasResized() OVERRIDE;
176 virtual void AddKeyPressEventCallback( 176 virtual void AddKeyPressEventCallback(
177 const KeyPressEventCallback& callback) OVERRIDE; 177 const KeyPressEventCallback& callback) OVERRIDE;
178 virtual void RemoveKeyPressEventCallback( 178 virtual void RemoveKeyPressEventCallback(
179 const KeyPressEventCallback& callback) OVERRIDE; 179 const KeyPressEventCallback& callback) OVERRIDE;
180 virtual void AddMouseEventCallback(
181 const MouseEventCallback& callback) OVERRIDE;
182 virtual void RemoveMouseEventCallback(
183 const MouseEventCallback& callback) OVERRIDE;
180 virtual void GetWebScreenInfo(WebKit::WebScreenInfo* result) OVERRIDE; 184 virtual void GetWebScreenInfo(WebKit::WebScreenInfo* result) OVERRIDE;
181 virtual void GetSnapshotFromRenderer( 185 virtual void GetSnapshotFromRenderer(
182 const gfx::Rect& src_subrect, 186 const gfx::Rect& src_subrect,
183 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 187 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
184 188
185 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; 189 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const;
186 190
187 // Notification that the screen info has changed. 191 // Notification that the screen info has changed.
188 void NotifyScreenInfoChanged(); 192 void NotifyScreenInfoChanged();
189 193
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 823
820 bool waiting_for_screen_rects_ack_; 824 bool waiting_for_screen_rects_ack_;
821 gfx::Rect last_view_screen_rect_; 825 gfx::Rect last_view_screen_rect_;
822 gfx::Rect last_window_screen_rect_; 826 gfx::Rect last_window_screen_rect_;
823 827
824 AccessibilityMode accessibility_mode_; 828 AccessibilityMode accessibility_mode_;
825 829
826 // Keyboard event listeners. 830 // Keyboard event listeners.
827 std::vector<KeyPressEventCallback> key_press_event_callbacks_; 831 std::vector<KeyPressEventCallback> key_press_event_callbacks_;
828 832
833 // Mouse event callbacks.
834 std::vector<MouseEventCallback> mouse_event_callbacks_;
835
829 // If true, then we should repaint when restoring even if we have a 836 // If true, then we should repaint when restoring even if we have a
830 // backingstore. This flag is set to true if we receive a paint message 837 // backingstore. This flag is set to true if we receive a paint message
831 // while is_hidden_ to true. Even though we tell the render widget to hide 838 // while is_hidden_ to true. Even though we tell the render widget to hide
832 // itself, a paint message could already be in flight at that point. 839 // itself, a paint message could already be in flight at that point.
833 bool needs_repainting_on_restore_; 840 bool needs_repainting_on_restore_;
834 841
835 // This is true if the renderer is currently unresponsive. 842 // This is true if the renderer is currently unresponsive.
836 bool is_unresponsive_; 843 bool is_unresponsive_;
837 844
838 // The following value indicates a time in the future when we would consider 845 // The following value indicates a time in the future when we would consider
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 int64 last_input_number_; 926 int64 last_input_number_;
920 927
921 BrowserRenderingStats rendering_stats_; 928 BrowserRenderingStats rendering_stats_;
922 929
923 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 930 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
924 }; 931 };
925 932
926 } // namespace content 933 } // namespace content
927 934
928 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 935 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698