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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_guest.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_GUEST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/browser/renderer_host/render_widget_host_view_base.h" 11 #include "content/browser/renderer_host/render_widget_host_view_base.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/gfx/point.h"
15 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 #include "ui/gfx/vector2d_f.h"
16 #include "webkit/glue/webcursor.h" 16 #include "webkit/glue/webcursor.h"
17 17
18 #if defined(TOOLKIT_GTK) 18 #if defined(TOOLKIT_GTK)
19 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h" 19 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h"
20 #endif // defined(TOOLKIT_GTK) 20 #endif // defined(TOOLKIT_GTK)
21 21
22 namespace content { 22 namespace content {
23 class RenderWidgetHost; 23 class RenderWidgetHost;
24 class RenderWidgetHostImpl; 24 class RenderWidgetHostImpl;
25 class BrowserPluginGuest; 25 class BrowserPluginGuest;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 // RenderWidgetHostViewPort implementation. 153 // RenderWidgetHostViewPort implementation.
154 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, 154 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
155 const SkBitmap& zoomed_bitmap) OVERRIDE; 155 const SkBitmap& zoomed_bitmap) OVERRIDE;
156 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, 156 virtual void SetCachedPageScaleFactorLimits(float minimum_scale,
157 float maximum_scale) OVERRIDE; 157 float maximum_scale) OVERRIDE;
158 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset, 158 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset,
159 float page_scale_factor, 159 float page_scale_factor,
160 float min_page_scale_factor, 160 float min_page_scale_factor,
161 float max_page_scale_factor, 161 float max_page_scale_factor,
162 const gfx::Size& content_size) OVERRIDE; 162 const gfx::Size& content_size,
163 const gfx::Vector2dF& controls_offset,
164 const gfx::Vector2dF& content_offset) OVERRIDE;
163 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; 165 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE;
164 #endif // defined(OS_ANDROID) 166 #endif // defined(OS_ANDROID)
165 167
166 #if defined(TOOLKIT_GTK) 168 #if defined(TOOLKIT_GTK)
167 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; 169 virtual GdkEventButton* GetLastMouseDown() OVERRIDE;
168 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; 170 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE;
169 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 171 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
170 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 172 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
171 #endif // defined(TOOLKIT_GTK) 173 #endif // defined(TOOLKIT_GTK)
172 174
(...skipping 16 matching lines...) Expand all
189 191
190 BrowserPluginGuest *guest_; 192 BrowserPluginGuest *guest_;
191 gfx::Size size_; 193 gfx::Size size_;
192 194
193 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); 195 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest);
194 }; 196 };
195 197
196 } // namespace content 198 } // namespace content
197 199
198 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 200 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698