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

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

Issue 10704049: Split out ContentViewCore from ContentView for embedders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 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_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/process.h" 11 #include "base/process.h"
12 #include "content/browser/renderer_host/render_widget_host_view_base.h" 12 #include "content/browser/renderer_host/render_widget_host_view_base.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 14
15 struct ViewHostMsg_TextInputState_Params; 15 struct ViewHostMsg_TextInputState_Params;
16 16
17 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 17 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
18 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 18 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
19 19
20 namespace content { 20 namespace content {
21 class ContentViewImpl; 21 class ContentViewCoreImpl;
22 class RenderWidgetHost; 22 class RenderWidgetHost;
23 class RenderWidgetHostImpl; 23 class RenderWidgetHostImpl;
24 struct NativeWebKeyboardEvent; 24 struct NativeWebKeyboardEvent;
25 25
26 // ----------------------------------------------------------------------------- 26 // -----------------------------------------------------------------------------
27 // See comments in render_widget_host_view.h about this class and its members. 27 // See comments in render_widget_host_view.h about this class and its members.
28 // ----------------------------------------------------------------------------- 28 // -----------------------------------------------------------------------------
29 class RenderWidgetHostViewAndroid : public RenderWidgetHostViewBase { 29 class RenderWidgetHostViewAndroid : public RenderWidgetHostViewBase {
30 public: 30 public:
31 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, 31 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget,
32 ContentViewImpl* content_view); 32 ContentViewCoreImpl* content_view_core);
33 virtual ~RenderWidgetHostViewAndroid(); 33 virtual ~RenderWidgetHostViewAndroid();
34 34
35 // RenderWidgetHostView implementation. 35 // RenderWidgetHostView implementation.
36 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; 36 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
37 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 37 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
38 const gfx::Rect& pos) OVERRIDE; 38 const gfx::Rect& pos) OVERRIDE;
39 virtual void InitAsFullscreen( 39 virtual void InitAsFullscreen(
40 RenderWidgetHostView* reference_host_view) OVERRIDE; 40 RenderWidgetHostView* reference_host_view) OVERRIDE;
41 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 41 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
42 virtual void WasRestored() OVERRIDE; 42 virtual void WasRestored() OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 95 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
96 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, 96 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type,
97 bool processed) OVERRIDE; 97 bool processed) OVERRIDE;
98 virtual void SetHasHorizontalScrollbar( 98 virtual void SetHasHorizontalScrollbar(
99 bool has_horizontal_scrollbar) OVERRIDE; 99 bool has_horizontal_scrollbar) OVERRIDE;
100 virtual void SetScrollOffsetPinning( 100 virtual void SetScrollOffsetPinning(
101 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 101 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
102 virtual bool LockMouse() OVERRIDE; 102 virtual bool LockMouse() OVERRIDE;
103 virtual void UnlockMouse() OVERRIDE; 103 virtual void UnlockMouse() OVERRIDE;
104 104
105 void SetContentView(ContentViewImpl* content_view); 105 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
106 106
107 private: 107 private:
108 // The model object. 108 // The model object.
109 RenderWidgetHostImpl* host_; 109 RenderWidgetHostImpl* host_;
110 110
111 // Whether or not this widget is hidden. 111 // Whether or not this widget is hidden.
112 bool is_hidden_; 112 bool is_hidden_;
113 113
114 // ContentViewImpl is our interface to the view system. 114 // ContentViewCoreImpl is our interface to the view system.
115 ContentViewImpl* content_view_; 115 ContentViewCoreImpl* content_view_core_;
116 116
117 // The size that we want the renderer to be. We keep this in a separate 117 // The size that we want the renderer to be. We keep this in a separate
118 // variable because resizing is async. 118 // variable because resizing is async.
119 gfx::Size requested_size_; 119 gfx::Size requested_size_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 121 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
122 }; 122 };
123 123
124 } // namespace content 124 } // namespace content
125 125
126 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 126 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/download_controller.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698