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

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

Issue 20015: Make it easier to create new IPC channel types (i.e. renderer/plugin). Inste... (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 "chrome/common/render_messages.h" 10 #include "webkit/glue/webplugin.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
24 // RenderWidgetHostView is an interface implemented by an object that acts as 23 // RenderWidgetHostView is an interface implemented by an object that acts as
25 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its 24 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its
26 // associated RenderProcessHost own the "Model" in this case which is the 25 // associated RenderProcessHost own the "Model" in this case which is the
27 // child renderer process. The View is responsible for receiving events from 26 // child renderer process. The View is responsible for receiving events from
28 // the surrounding environment and passing them to the RenderWidgetHost, and 27 // the surrounding environment and passing them to the RenderWidgetHost, and
29 // for actually displaying the content of the RenderWidgetHost when it 28 // for actually displaying the content of the RenderWidgetHost when it
30 // changes. 29 // changes.
31 class RenderWidgetHostView { 30 class RenderWidgetHostView {
32 public: 31 public:
33 // Platform-specific creator. Use this to construct new RenderWidgetHostViews 32 // Platform-specific creator. Use this to construct new RenderWidgetHostViews
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Sets the cursor to the one associated with the specified cursor_type 77 // Sets the cursor to the one associated with the specified cursor_type
79 virtual void UpdateCursor(const WebCursor& cursor) = 0; 78 virtual void UpdateCursor(const WebCursor& cursor) = 0;
80 79
81 // Updates the displayed cursor to the current one. 80 // Updates the displayed cursor to the current one.
82 virtual void UpdateCursorIfOverSelf() = 0; 81 virtual void UpdateCursorIfOverSelf() = 0;
83 82
84 // Indicates whether the page has finished loading. 83 // Indicates whether the page has finished loading.
85 virtual void SetIsLoading(bool is_loading) = 0; 84 virtual void SetIsLoading(bool is_loading) = 0;
86 85
87 // Enable or disable IME for the view. 86 // Enable or disable IME for the view.
88 virtual void IMEUpdateStatus(ViewHostMsg_ImeControl control, 87 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) = 0;
89 const gfx::Rect& caret_rect) = 0;
90 88
91 // Informs the view that a portion of the widget's backing store was painted. 89 // Informs the view that a portion of the widget's backing store was painted.
92 // The view should copy the given rect from the backing store of the render 90 // The view should copy the given rect from the backing store of the render
93 // widget onto the screen. 91 // widget onto the screen.
94 virtual void DidPaintRect(const gfx::Rect& rect) = 0; 92 virtual void DidPaintRect(const gfx::Rect& rect) = 0;
95 93
96 // Informs the view that a portion of the widget's backing store was scrolled 94 // Informs the view that a portion of the widget's backing store was scrolled
97 // by dx pixels horizontally and dy pixels vertically. The view should copy 95 // by dx pixels horizontally and dy pixels vertically. The view should copy
98 // the exposed pixels from the backing store of the render widget (which has 96 // the exposed pixels from the backing store of the render widget (which has
99 // already been scrolled) onto the screen. 97 // already been scrolled) onto the screen.
(...skipping 13 matching lines...) Expand all
113 protected: 111 protected:
114 // Interface class only, do not construct. 112 // Interface class only, do not construct.
115 RenderWidgetHostView() {} 113 RenderWidgetHostView() {}
116 114
117 private: 115 private:
118 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 116 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
119 }; 117 };
120 118
121 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 119 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
122 120
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