| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 10 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params | 222 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params |
| 223 ) OVERRIDE; | 223 ) OVERRIDE; |
| 224 | 224 |
| 225 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; | 225 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; |
| 226 virtual void StartPluginIme() OVERRIDE; | 226 virtual void StartPluginIme() OVERRIDE; |
| 227 virtual bool PostProcessEventForPluginIme( | 227 virtual bool PostProcessEventForPluginIme( |
| 228 const NativeWebKeyboardEvent& event) OVERRIDE; | 228 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 229 | 229 |
| 230 // Methods associated with GPU-accelerated plug-in instances and the | 230 // Methods associated with GPU-accelerated plug-in instances and the |
| 231 // accelerated compositor. | 231 // accelerated compositor. |
| 232 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, | 232 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
| 233 bool root); | 233 bool opaque, bool root) OVERRIDE; |
| 234 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 234 virtual void DestroyFakePluginWindowHandle( |
| 235 gfx::PluginWindowHandle window) OVERRIDE; |
| 235 | 236 |
| 236 // Exposed for testing. | 237 // Exposed for testing. |
| 237 AcceleratedPluginView* ViewForPluginWindowHandle( | 238 AcceleratedPluginView* ViewForPluginWindowHandle( |
| 238 gfx::PluginWindowHandle window); | 239 gfx::PluginWindowHandle window); |
| 239 | 240 |
| 240 // Helper to do the actual cleanup after a plugin handle has been destroyed. | 241 // Helper to do the actual cleanup after a plugin handle has been destroyed. |
| 241 // Required because DestroyFakePluginWindowHandle() isn't always called for | 242 // Required because DestroyFakePluginWindowHandle() isn't always called for |
| 242 // all handles (it's e.g. not called on navigation, when the RWHVMac gets | 243 // all handles (it's e.g. not called on navigation, when the RWHVMac gets |
| 243 // destroyed anyway). | 244 // destroyed anyway). |
| 244 void DeallocFakePluginWindowHandle(gfx::PluginWindowHandle window); | 245 void DeallocFakePluginWindowHandle(gfx::PluginWindowHandle window); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // hidden until the software backing store has been updated. This variable is | 389 // hidden until the software backing store has been updated. This variable is |
| 389 // set when the gpu widget needs to be hidden once a paint is completed. | 390 // set when the gpu widget needs to be hidden once a paint is completed. |
| 390 bool needs_gpu_visibility_update_after_repaint_; | 391 bool needs_gpu_visibility_update_after_repaint_; |
| 391 | 392 |
| 392 gfx::PluginWindowHandle compositing_surface_; | 393 gfx::PluginWindowHandle compositing_surface_; |
| 393 | 394 |
| 394 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 395 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 395 }; | 396 }; |
| 396 | 397 |
| 397 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 398 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |