| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // be hooked up immediately to the view hierarchy, or else when it is | 175 // be hooked up immediately to the view hierarchy, or else when it is |
| 176 // deleted it will delete this out from under the caller. | 176 // deleted it will delete this out from under the caller. |
| 177 explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); | 177 explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); |
| 178 virtual ~RenderWidgetHostViewMac(); | 178 virtual ~RenderWidgetHostViewMac(); |
| 179 | 179 |
| 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(); |
| 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 gfx::NativeView GetNativeView(); | 190 virtual gfx::NativeView GetNativeView(); |
| 191 virtual void MovePluginWindows( | 191 virtual void MovePluginWindows( |
| 192 const std::vector<webkit::npapi::WebPluginGeometry>& moves); | 192 const std::vector<webkit::npapi::WebPluginGeometry>& moves); |
| 193 virtual void Focus(); | 193 virtual void Focus(); |
| 194 virtual void Blur(); | 194 virtual void Blur(); |
| 195 virtual bool HasFocus(); | 195 virtual bool HasFocus(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 371 |
| 372 // When rendering transitions from gpu to software, the gpu widget can't be | 372 // 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 | 373 // 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. | 374 // set when the gpu widget needs to be hidden once a paint is completed. |
| 375 bool needs_gpu_visibility_update_after_repaint_; | 375 bool needs_gpu_visibility_update_after_repaint_; |
| 376 | 376 |
| 377 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 377 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 378 }; | 378 }; |
| 379 | 379 |
| 380 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 380 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |