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

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

Issue 21039: Revert my change to get the tree green. Not sure why the tests became flaky.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
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_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include "base/gfx/native_widget_types.h" 8 #include "base/gfx/native_widget_types.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "webkit/glue/webplugin.h" 10 #include "chrome/common/render_messages.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Rect; 13 class Rect;
14 class Size; 14 class Size;
15 } 15 }
16 namespace IPC { 16 namespace IPC {
17 class Message; 17 class Message;
18 } 18 }
19 19
20 class RenderProcessHost; 20 class RenderProcessHost;
21 class RenderWidgetHost; 21 class RenderWidgetHost;
22 class WebCursor; 22 class WebCursor;
23
23 // RenderWidgetHostView is an interface implemented by an object that acts as 24 // RenderWidgetHostView is an interface implemented by an object that acts as
24 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its 25 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its
25 // associated RenderProcessHost own the "Model" in this case which is the 26 // associated RenderProcessHost own the "Model" in this case which is the
26 // child renderer process. The View is responsible for receiving events from 27 // child renderer process. The View is responsible for receiving events from
27 // the surrounding environment and passing them to the RenderWidgetHost, and 28 // the surrounding environment and passing them to the RenderWidgetHost, and
28 // for actually displaying the content of the RenderWidgetHost when it 29 // for actually displaying the content of the RenderWidgetHost when it
29 // changes. 30 // changes.
30 class RenderWidgetHostView { 31 class RenderWidgetHostView {
31 public: 32 public:
32 // Platform-specific creator. Use this to construct new RenderWidgetHostViews 33 // Platform-specific creator. Use this to construct new RenderWidgetHostViews
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Sets the cursor to the one associated with the specified cursor_type 78 // Sets the cursor to the one associated with the specified cursor_type
78 virtual void UpdateCursor(const WebCursor& cursor) = 0; 79 virtual void UpdateCursor(const WebCursor& cursor) = 0;
79 80
80 // Updates the displayed cursor to the current one. 81 // Updates the displayed cursor to the current one.
81 virtual void UpdateCursorIfOverSelf() = 0; 82 virtual void UpdateCursorIfOverSelf() = 0;
82 83
83 // Indicates whether the page has finished loading. 84 // Indicates whether the page has finished loading.
84 virtual void SetIsLoading(bool is_loading) = 0; 85 virtual void SetIsLoading(bool is_loading) = 0;
85 86
86 // Enable or disable IME for the view. 87 // Enable or disable IME for the view.
87 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) = 0; 88 virtual void IMEUpdateStatus(ViewHostMsg_ImeControl control,
89 const gfx::Rect& caret_rect) = 0;
88 90
89 // Informs the view that a portion of the widget's backing store was painted. 91 // Informs the view that a portion of the widget's backing store was painted.
90 // The view should copy the given rect from the backing store of the render 92 // The view should copy the given rect from the backing store of the render
91 // widget onto the screen. 93 // widget onto the screen.
92 virtual void DidPaintRect(const gfx::Rect& rect) = 0; 94 virtual void DidPaintRect(const gfx::Rect& rect) = 0;
93 95
94 // Informs the view that a portion of the widget's backing store was scrolled 96 // Informs the view that a portion of the widget's backing store was scrolled
95 // by dx pixels horizontally and dy pixels vertically. The view should copy 97 // by dx pixels horizontally and dy pixels vertically. The view should copy
96 // the exposed pixels from the backing store of the render widget (which has 98 // the exposed pixels from the backing store of the render widget (which has
97 // already been scrolled) onto the screen. 99 // already been scrolled) onto the screen.
(...skipping 13 matching lines...) Expand all
111 protected: 113 protected:
112 // Interface class only, do not construct. 114 // Interface class only, do not construct.
113 RenderWidgetHostView() {} 115 RenderWidgetHostView() {}
114 116
115 private: 117 private:
116 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 118 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
117 }; 119 };
118 120
119 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 121 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
120 122
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698