OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #import <QuartzCore/CALayer.h> | 10 #import <QuartzCore/CALayer.h> |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 RenderWidgetHostViewCocoa* native_view() const { return cocoa_view_; } | 180 RenderWidgetHostViewCocoa* native_view() const { return cocoa_view_; } |
181 | 181 |
182 // Implementation of RenderWidgetHostView: | 182 // Implementation of RenderWidgetHostView: |
183 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 183 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
184 const gfx::Rect& pos); | 184 const gfx::Rect& pos); |
185 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); | 185 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); |
186 virtual RenderWidgetHost* GetRenderWidgetHost() const; | 186 virtual RenderWidgetHost* GetRenderWidgetHost() const; |
187 virtual void DidBecomeSelected(); | 187 virtual void DidBecomeSelected(); |
188 virtual void WasHidden(); | 188 virtual void WasHidden(); |
189 virtual void SetSize(const gfx::Size& size); | 189 virtual void SetSize(const gfx::Size& size); |
| 190 virtual void MoveTo(const gfx::Point& point); |
190 virtual gfx::NativeView GetNativeView(); | 191 virtual gfx::NativeView GetNativeView(); |
191 virtual void MovePluginWindows( | 192 virtual void MovePluginWindows( |
192 const std::vector<webkit::npapi::WebPluginGeometry>& moves); | 193 const std::vector<webkit::npapi::WebPluginGeometry>& moves); |
193 virtual void Focus(); | 194 virtual void Focus(); |
194 virtual void Blur(); | 195 virtual void Blur(); |
195 virtual bool HasFocus(); | 196 virtual bool HasFocus(); |
196 virtual void Show(); | 197 virtual void Show(); |
197 virtual void Hide(); | 198 virtual void Hide(); |
198 virtual bool IsShowing(); | 199 virtual bool IsShowing(); |
199 virtual gfx::Rect GetViewBounds() const; | 200 virtual gfx::Rect GetViewBounds() const; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 372 |
372 // When rendering transitions from gpu to software, the gpu widget can't be | 373 // When rendering transitions from gpu to software, the gpu widget can't be |
373 // hidden until the software backing store has been updated. This variable is | 374 // hidden until the software backing store has been updated. This variable is |
374 // set when the gpu widget needs to be hidden once a paint is completed. | 375 // set when the gpu widget needs to be hidden once a paint is completed. |
375 bool needs_gpu_visibility_update_after_repaint_; | 376 bool needs_gpu_visibility_update_after_repaint_; |
376 | 377 |
377 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 378 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
378 }; | 379 }; |
379 | 380 |
380 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 381 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |