| OLD | NEW |
| 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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_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 | 10 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 virtual bool IsShowing() OVERRIDE; | 184 virtual bool IsShowing() OVERRIDE; |
| 185 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 185 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| 186 virtual void SetShowingContextMenu(bool showing) OVERRIDE; | 186 virtual void SetShowingContextMenu(bool showing) OVERRIDE; |
| 187 virtual void SetActive(bool active) OVERRIDE; | 187 virtual void SetActive(bool active) OVERRIDE; |
| 188 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; | 188 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; |
| 189 virtual void SetWindowVisibility(bool visible) OVERRIDE; | 189 virtual void SetWindowVisibility(bool visible) OVERRIDE; |
| 190 virtual void WindowFrameChanged() OVERRIDE; | 190 virtual void WindowFrameChanged() OVERRIDE; |
| 191 virtual void UnhandledWheelEvent( | 191 virtual void UnhandledWheelEvent( |
| 192 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 192 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
| 193 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 193 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 194 virtual bool CopyFromCompositingSurface( |
| 195 const gfx::Size& size, |
| 196 skia::PlatformCanvas* output) OVERRIDE; |
| 194 | 197 |
| 195 // Implementation of RenderWidgetHostViewPort. | 198 // Implementation of RenderWidgetHostViewPort. |
| 196 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, | 199 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, |
| 197 const gfx::Rect& pos) OVERRIDE; | 200 const gfx::Rect& pos) OVERRIDE; |
| 198 virtual void InitAsFullscreen( | 201 virtual void InitAsFullscreen( |
| 199 content::RenderWidgetHostView* reference_host_view) OVERRIDE; | 202 content::RenderWidgetHostView* reference_host_view) OVERRIDE; |
| 200 virtual void DidBecomeSelected() OVERRIDE; | 203 virtual void DidBecomeSelected() OVERRIDE; |
| 201 virtual void WasHidden() OVERRIDE; | 204 virtual void WasHidden() OVERRIDE; |
| 202 virtual void MovePluginWindows( | 205 virtual void MovePluginWindows( |
| 203 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; | 206 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 // hidden until the software backing store has been updated. This variable is | 406 // hidden until the software backing store has been updated. This variable is |
| 404 // set when the gpu widget needs to be hidden once a paint is completed. | 407 // set when the gpu widget needs to be hidden once a paint is completed. |
| 405 bool needs_gpu_visibility_update_after_repaint_; | 408 bool needs_gpu_visibility_update_after_repaint_; |
| 406 | 409 |
| 407 gfx::PluginWindowHandle compositing_surface_; | 410 gfx::PluginWindowHandle compositing_surface_; |
| 408 | 411 |
| 409 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 412 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 410 }; | 413 }; |
| 411 | 414 |
| 412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 415 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |