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

Side by Side Diff: content/browser/renderer_host/render_widget_host.h

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 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) 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 #include "ipc/ipc_channel.h" 24 #include "ipc/ipc_channel.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
27 #include "ui/base/ime/text_input_type.h" 27 #include "ui/base/ime/text_input_type.h"
28 #include "ui/gfx/native_widget_types.h" 28 #include "ui/gfx/native_widget_types.h"
29 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
30 #include "ui/gfx/surface/transport_dib.h" 30 #include "ui/gfx/surface/transport_dib.h"
31 31
32 class BackingStore; 32 class BackingStore;
33 struct EditCommand; 33 struct EditCommand;
34 class RenderWidgetHostView;
35 class RenderWidgetHostViewBase; 34 class RenderWidgetHostViewBase;
36 class TransportDIB; 35 class TransportDIB;
37 struct ViewHostMsg_UpdateRect_Params; 36 struct ViewHostMsg_UpdateRect_Params;
38 class WebCursor; 37 class WebCursor;
39 38
40 namespace base { 39 namespace base {
41 class TimeTicks; 40 class TimeTicks;
42 } 41 }
43 42
44 namespace content { 43 namespace content {
45 class RenderProcessHost; 44 class RenderProcessHost;
45 class RenderWidgetHostView;
46 class RenderWidgetHostViewPort; 46 class RenderWidgetHostViewPort;
47 } 47 }
48 48
49 namespace gfx { 49 namespace gfx {
50 class Rect; 50 class Rect;
51 } 51 }
52 52
53 namespace ui { 53 namespace ui {
54 class Range; 54 class Range;
55 } 55 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // routing_id can be MSG_ROUTING_NONE, in which case the next available 150 // routing_id can be MSG_ROUTING_NONE, in which case the next available
151 // routing id is taken from the RenderProcessHost. 151 // routing id is taken from the RenderProcessHost.
152 RenderWidgetHost(content::RenderProcessHost* process, int routing_id); 152 RenderWidgetHost(content::RenderProcessHost* process, int routing_id);
153 virtual ~RenderWidgetHost(); 153 virtual ~RenderWidgetHost();
154 154
155 // Gets/Sets the View of this RenderWidgetHost. Can be NULL, e.g. if the 155 // Gets/Sets the View of this RenderWidgetHost. Can be NULL, e.g. if the
156 // RenderWidget is being destroyed or the render process crashed. You should 156 // RenderWidget is being destroyed or the render process crashed. You should
157 // never cache this pointer since it can become NULL if the renderer crashes, 157 // never cache this pointer since it can become NULL if the renderer crashes,
158 // instead you should always ask for it using the accessor. 158 // instead you should always ask for it using the accessor.
159 void SetView(RenderWidgetHostView* view); 159 void SetView(content::RenderWidgetHostView* view);
160 RenderWidgetHostView* view() const; 160 content::RenderWidgetHostView* view() const;
161 161
162 content::RenderProcessHost* process() const { return process_; } 162 content::RenderProcessHost* process() const { return process_; }
163 int routing_id() const { return routing_id_; } 163 int routing_id() const { return routing_id_; }
164 int surface_id() const { return surface_id_; } 164 int surface_id() const { return surface_id_; }
165 bool renderer_accessible() { return renderer_accessible_; } 165 bool renderer_accessible() { return renderer_accessible_; }
166 166
167 bool empty() const { return current_size_.IsEmpty(); } 167 bool empty() const { return current_size_.IsEmpty(); }
168 168
169 // Returns the property bag for this widget, where callers can add extra data 169 // Returns the property bag for this widget, where callers can add extra data
170 // they may wish to associate with it. Returns a pointer rather than a 170 // they may wish to associate with it. Returns a pointer rather than a
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 // then touch events are sent to the renderer. Otherwise, the touch events are 818 // then touch events are sent to the renderer. Otherwise, the touch events are
819 // not sent to the renderer. 819 // not sent to the renderer.
820 bool has_touch_handler_; 820 bool has_touch_handler_;
821 821
822 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; 822 base::WeakPtrFactory<RenderWidgetHost> weak_factory_;
823 823
824 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 824 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
825 }; 825 };
826 826
827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698