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

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

Issue 16048003: Fix race between DPI and window size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove semicolon Created 7 years, 6 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 20 matching lines...) Expand all
31 #include "ui/base/ime/text_input_type.h" 31 #include "ui/base/ime/text_input_type.h"
32 #include "ui/base/range/range.h" 32 #include "ui/base/range/range.h"
33 #include "ui/gfx/native_widget_types.h" 33 #include "ui/gfx/native_widget_types.h"
34 #include "ui/gfx/rect.h" 34 #include "ui/gfx/rect.h"
35 #include "ui/gfx/vector2d.h" 35 #include "ui/gfx/vector2d.h"
36 #include "ui/gfx/vector2d_f.h" 36 #include "ui/gfx/vector2d_f.h"
37 #include "ui/surface/transport_dib.h" 37 #include "ui/surface/transport_dib.h"
38 #include "webkit/glue/webcursor.h" 38 #include "webkit/glue/webcursor.h"
39 39
40 struct ViewHostMsg_UpdateRect_Params; 40 struct ViewHostMsg_UpdateRect_Params;
41 struct ViewMsg_Resize_Params;
41 class ViewHostMsg_UpdateRect; 42 class ViewHostMsg_UpdateRect;
42 43
43 namespace IPC { 44 namespace IPC {
44 class SyncMessage; 45 class SyncMessage;
45 } 46 }
46 47
47 namespace WebKit { 48 namespace WebKit {
48 class WebGestureEvent; 49 class WebGestureEvent;
49 class WebInputEvent; 50 class WebInputEvent;
50 class WebMouseEvent; 51 class WebMouseEvent;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 292
292 // RenderWidget IPC message handlers 293 // RenderWidget IPC message handlers
293 void OnHandleInputEvent(const WebKit::WebInputEvent* event, 294 void OnHandleInputEvent(const WebKit::WebInputEvent* event,
294 const cc::LatencyInfo& latency_info, 295 const cc::LatencyInfo& latency_info,
295 bool keyboard_shortcut); 296 bool keyboard_shortcut);
296 void OnCursorVisibilityChange(bool is_visible); 297 void OnCursorVisibilityChange(bool is_visible);
297 void OnMouseCaptureLost(); 298 void OnMouseCaptureLost();
298 virtual void OnSetFocus(bool enable); 299 virtual void OnSetFocus(bool enable);
299 void OnClose(); 300 void OnClose();
300 void OnCreatingNewAck(); 301 void OnCreatingNewAck();
301 virtual void OnResize(const gfx::Size& new_size, 302 virtual void OnResize(const ViewMsg_Resize_Params& params);
302 const gfx::Size& physical_backing_size,
303 float overdraw_bottom_height,
304 const gfx::Rect& resizer_rect,
305 bool is_fullscreen);
306 void OnChangeResizeRect(const gfx::Rect& resizer_rect); 303 void OnChangeResizeRect(const gfx::Rect& resizer_rect);
307 virtual void OnWasHidden(); 304 virtual void OnWasHidden();
308 virtual void OnWasShown(bool needs_repainting); 305 virtual void OnWasShown(bool needs_repainting);
309 virtual void OnWasSwappedOut(); 306 virtual void OnWasSwappedOut();
310 void OnUpdateRectAck(); 307 void OnUpdateRectAck();
311 void OnCreateVideoAck(int32 video_id); 308 void OnCreateVideoAck(int32 video_id);
312 void OnUpdateVideoAck(int32 video_id); 309 void OnUpdateVideoAck(int32 video_id);
313 void OnRequestMoveAck(); 310 void OnRequestMoveAck();
314 void OnSetInputMethodActive(bool is_active); 311 void OnSetInputMethodActive(bool is_active);
315 virtual void OnImeSetComposition( 312 virtual void OnImeSetComposition(
316 const string16& text, 313 const string16& text,
317 const std::vector<WebKit::WebCompositionUnderline>& underlines, 314 const std::vector<WebKit::WebCompositionUnderline>& underlines,
318 int selection_start, 315 int selection_start,
319 int selection_end); 316 int selection_end);
320 virtual void OnImeConfirmComposition( 317 virtual void OnImeConfirmComposition(
321 const string16& text, const ui::Range& replacement_range); 318 const string16& text, const ui::Range& replacement_range);
322 void OnPaintAtSize(const TransportDIB::Handle& dib_id, 319 void OnPaintAtSize(const TransportDIB::Handle& dib_id,
323 int tag, 320 int tag,
324 const gfx::Size& page_size, 321 const gfx::Size& page_size,
325 const gfx::Size& desired_size); 322 const gfx::Size& desired_size);
326 void OnRepaint(gfx::Size size_to_paint); 323 void OnRepaint(gfx::Size size_to_paint);
327 void OnSmoothScrollCompleted(); 324 void OnSmoothScrollCompleted();
328 void OnSetTextDirection(WebKit::WebTextDirection direction); 325 void OnSetTextDirection(WebKit::WebTextDirection direction);
329 void OnGetFPS(); 326 void OnGetFPS();
330 void OnScreenInfoChanged(const WebKit::WebScreenInfo& screen_info);
331 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, 327 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
332 const gfx::Rect& window_screen_rect); 328 const gfx::Rect& window_screen_rect);
333 #if defined(OS_ANDROID) 329 #if defined(OS_ANDROID)
334 void OnImeBatchStateChanged(bool is_begin); 330 void OnImeBatchStateChanged(bool is_begin);
335 void OnShowImeIfNeeded(); 331 void OnShowImeIfNeeded();
336 #endif 332 #endif
337 void OnSnapshot(const gfx::Rect& src_subrect); 333 void OnSnapshot(const gfx::Rect& src_subrect);
338 334
339 // Notify the compositor about a change in viewport size. This should be 335 // Notify the compositor about a change in viewport size. This should be
340 // used only with auto resize mode WebWidgets, as normal WebWidgets should 336 // used only with auto resize mode WebWidgets, as normal WebWidgets should
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 bool overscroll_notifications_enabled_; 709 bool overscroll_notifications_enabled_;
714 710
715 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 711 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
716 712
717 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 713 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
718 }; 714 };
719 715
720 } // namespace content 716 } // namespace content
721 717
722 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 718 #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