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

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: Remove some unnecessary bits after addressing comments. Created 8 years 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // RenderWidgetHostViewPort implementation. 155 // RenderWidgetHostViewPort implementation.
156 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, 156 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
157 const SkBitmap& zoomed_bitmap) OVERRIDE; 157 const SkBitmap& zoomed_bitmap) OVERRIDE;
158 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, 158 virtual void SetCachedPageScaleFactorLimits(float minimum_scale,
159 float maximum_scale) OVERRIDE; 159 float maximum_scale) OVERRIDE;
160 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset, 160 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset,
161 float page_scale_factor, 161 float page_scale_factor,
162 float min_page_scale_factor, 162 float min_page_scale_factor,
163 float max_page_scale_factor, 163 float max_page_scale_factor,
164 const gfx::Size& content_size) OVERRIDE; 164 const gfx::Size& content_size,
165 const gfx::Vector2dF& controls_offset,
166 const gfx::Vector2dF& content_offset) OVERRIDE;
165 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; 167 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE;
166 #endif // defined(OS_ANDROID) 168 #endif // defined(OS_ANDROID)
167 169
168 #if defined(TOOLKIT_GTK) 170 #if defined(TOOLKIT_GTK)
169 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; 171 virtual GdkEventButton* GetLastMouseDown() OVERRIDE;
170 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; 172 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE;
171 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 173 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
172 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 174 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
173 #endif // defined(TOOLKIT_GTK) 175 #endif // defined(TOOLKIT_GTK)
174 176
(...skipping 16 matching lines...) Expand all
191 193
192 BrowserPluginGuest *guest_; 194 BrowserPluginGuest *guest_;
193 gfx::Size size_; 195 gfx::Size size_;
194 196
195 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); 197 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest);
196 }; 198 };
197 199
198 } // namespace content 200 } // namespace content
199 201
200 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 202 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698