| 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 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #import <QuartzCore/CALayer.h> | 9 #import <QuartzCore/CALayer.h> |
| 10 | 10 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 virtual void RenderViewGone(); | 172 virtual void RenderViewGone(); |
| 173 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}; | 173 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}; |
| 174 virtual void Destroy(); | 174 virtual void Destroy(); |
| 175 virtual void SetTooltipText(const std::wstring& tooltip_text); | 175 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 176 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 176 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 177 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size); | 177 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size); |
| 178 virtual void ShowPopupWithItems(gfx::Rect bounds, | 178 virtual void ShowPopupWithItems(gfx::Rect bounds, |
| 179 int item_height, | 179 int item_height, |
| 180 double item_font_size, | 180 double item_font_size, |
| 181 int selected_item, | 181 int selected_item, |
| 182 const std::vector<WebMenuItem>& items); | 182 const std::vector<WebMenuItem>& items, |
| 183 bool right_aligned); |
| 183 virtual gfx::Rect GetWindowRect(); | 184 virtual gfx::Rect GetWindowRect(); |
| 184 virtual gfx::Rect GetRootWindowRect(); | 185 virtual gfx::Rect GetRootWindowRect(); |
| 185 virtual void SetActive(bool active); | 186 virtual void SetActive(bool active); |
| 186 virtual void SetWindowVisibility(bool visible); | 187 virtual void SetWindowVisibility(bool visible); |
| 187 virtual void WindowFrameChanged(); | 188 virtual void WindowFrameChanged(); |
| 188 virtual void SetBackground(const SkBitmap& background); | 189 virtual void SetBackground(const SkBitmap& background); |
| 189 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 190 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 190 | 191 |
| 191 // Methods associated with GPU-accelerated plug-in instances. | 192 // Methods associated with GPU-accelerated plug-in instances. |
| 192 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque); | 193 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // Used for positioning a popup menu. | 281 // Used for positioning a popup menu. |
| 281 BaseView* parent_view_; | 282 BaseView* parent_view_; |
| 282 | 283 |
| 283 // Helper class for managing instances of accelerated plug-ins. | 284 // Helper class for managing instances of accelerated plug-ins. |
| 284 AcceleratedSurfaceContainerManagerMac plugin_container_manager_; | 285 AcceleratedSurfaceContainerManagerMac plugin_container_manager_; |
| 285 | 286 |
| 286 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 287 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 290 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |