| 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(); | 185 virtual void InitAsFullscreen(); |
| 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 SetBounds(const gfx::Rect& rect); |
| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 379 |
| 379 // When rendering transitions from gpu to software, the gpu widget can't be | 380 // When rendering transitions from gpu to software, the gpu widget can't be |
| 380 // hidden until the software backing store has been updated. This variable is | 381 // hidden until the software backing store has been updated. This variable is |
| 381 // set when the gpu widget needs to be hidden once a paint is completed. | 382 // set when the gpu widget needs to be hidden once a paint is completed. |
| 382 bool needs_gpu_visibility_update_after_repaint_; | 383 bool needs_gpu_visibility_update_after_repaint_; |
| 383 | 384 |
| 384 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 385 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 385 }; | 386 }; |
| 386 | 387 |
| 387 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 388 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |