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

Side by Side Diff: content/renderer/render_widget.h

Issue 14487003: Add a new pair of IPC categories for messages that need handling as input events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addresses feedback Created 7 years, 8 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 | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 // Resizes the render widget. 273 // Resizes the render widget.
274 void Resize(const gfx::Size& new_size, 274 void Resize(const gfx::Size& new_size,
275 const gfx::Size& physical_backing_size, 275 const gfx::Size& physical_backing_size,
276 float overdraw_bottom_height, 276 float overdraw_bottom_height,
277 const gfx::Rect& resizer_rect, 277 const gfx::Rect& resizer_rect,
278 bool is_fullscreen, 278 bool is_fullscreen,
279 ResizeAck resize_ack); 279 ResizeAck resize_ack);
280 280
281 // RenderWidget IPC message handlers 281 // RenderWidget IPC message handlers
282 void OnHandleInputEvent(const WebKit::WebInputEvent* event,
283 bool keyboard_shortcut);
284 void OnMouseCaptureLost();
285 virtual void OnSetFocus(bool enable);
282 void OnClose(); 286 void OnClose();
283 void OnCreatingNewAck(); 287 void OnCreatingNewAck();
284 virtual void OnResize(const gfx::Size& new_size, 288 virtual void OnResize(const gfx::Size& new_size,
285 const gfx::Size& physical_backing_size, 289 const gfx::Size& physical_backing_size,
286 float overdraw_bottom_height, 290 float overdraw_bottom_height,
287 const gfx::Rect& resizer_rect, 291 const gfx::Rect& resizer_rect,
288 bool is_fullscreen); 292 bool is_fullscreen);
289 void OnChangeResizeRect(const gfx::Rect& resizer_rect); 293 void OnChangeResizeRect(const gfx::Rect& resizer_rect);
290 virtual void OnWasHidden(); 294 virtual void OnWasHidden();
291 virtual void OnWasShown(bool needs_repainting); 295 virtual void OnWasShown(bool needs_repainting);
292 virtual void OnWasSwappedOut(); 296 virtual void OnWasSwappedOut();
293 void OnUpdateRectAck(); 297 void OnUpdateRectAck();
294 void OnCreateVideoAck(int32 video_id); 298 void OnCreateVideoAck(int32 video_id);
295 void OnUpdateVideoAck(int32 video_id); 299 void OnUpdateVideoAck(int32 video_id);
296 void OnRequestMoveAck(); 300 void OnRequestMoveAck();
297 void OnHandleInputEvent(const WebKit::WebInputEvent* event,
298 bool keyboard_shortcut);
299 void OnMouseCaptureLost();
300 virtual void OnSetFocus(bool enable);
301 void OnSetInputMethodActive(bool is_active); 301 void OnSetInputMethodActive(bool is_active);
302 virtual void OnImeSetComposition( 302 virtual void OnImeSetComposition(
303 const string16& text, 303 const string16& text,
304 const std::vector<WebKit::WebCompositionUnderline>& underlines, 304 const std::vector<WebKit::WebCompositionUnderline>& underlines,
305 int selection_start, 305 int selection_start,
306 int selection_end); 306 int selection_end);
307 virtual void OnImeConfirmComposition( 307 virtual void OnImeConfirmComposition(
308 const string16& text, const ui::Range& replacement_range); 308 const string16& text, const ui::Range& replacement_range);
309 void OnPaintAtSize(const TransportDIB::Handle& dib_id, 309 void OnPaintAtSize(const TransportDIB::Handle& dib_id,
310 int tag, 310 int tag,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 bool is_threaded_compositing_enabled_; 694 bool is_threaded_compositing_enabled_;
695 695
696 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 696 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
697 697
698 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 698 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
699 }; 699 };
700 700
701 } // namespace content 701 } // namespace content
702 702
703 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 703 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698