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

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

Issue 506013: Combine ViewHostMsg_{Paint,Scroll}Rect into one IPC.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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) 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_WIDGET_HOST_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const std::vector<webkit_glue::WebPluginGeometry>& moves); 118 const std::vector<webkit_glue::WebPluginGeometry>& moves);
119 virtual void Focus(); 119 virtual void Focus();
120 virtual void Blur(); 120 virtual void Blur();
121 virtual bool HasFocus(); 121 virtual bool HasFocus();
122 virtual void Show(); 122 virtual void Show();
123 virtual void Hide(); 123 virtual void Hide();
124 virtual gfx::Rect GetViewBounds() const; 124 virtual gfx::Rect GetViewBounds() const;
125 virtual void UpdateCursor(const WebCursor& cursor); 125 virtual void UpdateCursor(const WebCursor& cursor);
126 virtual void SetIsLoading(bool is_loading); 126 virtual void SetIsLoading(bool is_loading);
127 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); 127 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect);
128 virtual void DidPaintRect(const gfx::Rect& rect); 128 virtual void DidPaintBackingStoreRects(const std::vector<gfx::Rect>& rects);
129 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy); 129 virtual void DidScrollBackingStoreRect(const gfx::Rect& rect, int dx, int dy);
130 virtual void RenderViewGone(); 130 virtual void RenderViewGone();
131 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh); 131 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh);
132 virtual void Destroy(); 132 virtual void Destroy();
133 virtual void SetTooltipText(const std::wstring& tooltip_text); 133 virtual void SetTooltipText(const std::wstring& tooltip_text);
134 virtual BackingStore* AllocBackingStore(const gfx::Size& size); 134 virtual BackingStore* AllocBackingStore(const gfx::Size& size);
135 virtual void SetBackground(const SkBitmap& background); 135 virtual void SetBackground(const SkBitmap& background);
136 136
137 protected: 137 protected:
138 // Windows Message Handlers 138 // Windows Message Handlers
139 LRESULT OnCreate(CREATESTRUCT* create_struct); 139 LRESULT OnCreate(CREATESTRUCT* create_struct);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Synthesize mouse wheel event. 200 // Synthesize mouse wheel event.
201 LRESULT SynthesizeMouseWheel(bool is_vertical, int scroll_code, 201 LRESULT SynthesizeMouseWheel(bool is_vertical, int scroll_code,
202 short scroll_position); 202 short scroll_position);
203 203
204 // Shuts down the render_widget_host_. This is a separate function so we can 204 // Shuts down the render_widget_host_. This is a separate function so we can
205 // invoke it from the message loop. 205 // invoke it from the message loop.
206 void ShutdownHost(); 206 void ShutdownHost();
207 207
208 // Redraws the window synchronously, and any child windows (i.e. plugins) 208 // Redraws the window synchronously, and any child windows (i.e. plugins)
209 // asynchronously. 209 // asynchronously.
210 void Redraw(const gfx::Rect& invalid_rect); 210 void Redraw();
211 211
212 // Draw the resize corner bitmap on top of the given HDC, if it intersects the 212 // Draw the resize corner bitmap on top of the given HDC, if it intersects the
213 // given paint rect. 213 // given paint rect.
214 void DrawResizeCorner(const gfx::Rect& paint_rect, HDC dc); 214 void DrawResizeCorner(const gfx::Rect& paint_rect, HDC dc);
215 215
216 // Draw our background over the given HDC in the given |rect|. The background 216 // Draw our background over the given HDC in the given |rect|. The background
217 // will be tiled such that it lines up with existing tiles starting from the 217 // will be tiled such that it lines up with existing tiles starting from the
218 // origin of |dc|. 218 // origin of |dc|.
219 void DrawBackground(const RECT& rect, CPaintDC* dc); 219 void DrawBackground(const RECT& rect, CPaintDC* dc);
220 220
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // until that bug is fixed. 293 // until that bug is fixed.
294 bool renderer_accessible_; 294 bool renderer_accessible_;
295 295
296 // The time it took after this view was selected for it to be fully painted. 296 // The time it took after this view was selected for it to be fully painted.
297 base::TimeTicks tab_switch_paint_time_; 297 base::TimeTicks tab_switch_paint_time_;
298 298
299 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 299 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
300 }; 300 };
301 301
302 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 302 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698