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

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

Issue 11552009: Add support for calculating the position of the top controls in the cc layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing CC_EXPORT...learn to run try jobs manually Created 7 years, 11 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 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "content/browser/renderer_host/ime_adapter_android.h" 14 #include "content/browser/renderer_host/ime_adapter_android.h"
15 #include "content/browser/renderer_host/render_widget_host_view_base.h" 15 #include "content/browser/renderer_host/render_widget_host_view_base.h"
16 #include "third_party/skia/include/core/SkColor.h" 16 #include "third_party/skia/include/core/SkColor.h"
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
18 #include "ui/gfx/size.h" 18 #include "ui/gfx/size.h"
19 #include "ui/gfx/vector2d_f.h"
19 20
20 struct ViewHostMsg_TextInputState_Params; 21 struct ViewHostMsg_TextInputState_Params;
21 22
22 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
23 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
24 25
25 namespace cc { 26 namespace cc {
26 class Layer; 27 class Layer;
27 class TextureLayer; 28 class TextureLayer;
28 } 29 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual void UnlockMouse() OVERRIDE; 128 virtual void UnlockMouse() OVERRIDE;
128 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; 129 virtual void StartContentIntent(const GURL& content_url) OVERRIDE;
129 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; 130 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE;
130 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE; 131 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE;
131 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, 132 virtual void SetCachedPageScaleFactorLimits(float minimum_scale,
132 float maximum_scale) OVERRIDE; 133 float maximum_scale) OVERRIDE;
133 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset, 134 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset,
134 float page_scale_factor, 135 float page_scale_factor,
135 float min_page_scale_factor, 136 float min_page_scale_factor,
136 float max_page_scale_factor, 137 float max_page_scale_factor,
137 const gfx::Size& content_size) OVERRIDE; 138 const gfx::Size& content_size,
139 const gfx::Vector2dF& controls_offset,
140 const gfx::Vector2dF& content_offset) OVERRIDE;
138 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, 141 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
139 const SkBitmap& zoomed_bitmap) OVERRIDE; 142 const SkBitmap& zoomed_bitmap) OVERRIDE;
140 143
141 // Non-virtual methods 144 // Non-virtual methods
142 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 145 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
143 SkColor GetCachedBackgroundColor() const; 146 SkColor GetCachedBackgroundColor() const;
144 void SendKeyEvent(const NativeWebKeyboardEvent& event); 147 void SendKeyEvent(const NativeWebKeyboardEvent& event);
145 void SendTouchEvent(const WebKit::WebTouchEvent& event); 148 void SendTouchEvent(const WebKit::WebTouchEvent& event);
146 void SendMouseEvent(const WebKit::WebMouseEvent& event); 149 void SendMouseEvent(const WebKit::WebMouseEvent& event);
147 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); 150 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 199
197 // The mailbox name of the previously received frame. 200 // The mailbox name of the previously received frame.
198 std::string current_mailbox_name_; 201 std::string current_mailbox_name_;
199 202
200 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 203 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
201 }; 204 };
202 205
203 } // namespace content 206 } // namespace content
204 207
205 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 208 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698