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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 virtual void ImeCancelComposition(); | 199 virtual void ImeCancelComposition(); |
200 virtual void DidUpdateBackingStore( | 200 virtual void DidUpdateBackingStore( |
201 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 201 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
202 const std::vector<gfx::Rect>& copy_rects); | 202 const std::vector<gfx::Rect>& copy_rects); |
203 virtual void RenderViewGone(); | 203 virtual void RenderViewGone(); |
204 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}; | 204 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}; |
205 virtual void Destroy(); | 205 virtual void Destroy(); |
206 virtual void SetTooltipText(const std::wstring& tooltip_text); | 206 virtual void SetTooltipText(const std::wstring& tooltip_text); |
207 virtual void SelectionChanged(const std::string& text); | 207 virtual void SelectionChanged(const std::string& text); |
208 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 208 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
209 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size); | |
210 virtual void SetTakesFocusOnlyOnMouseDown(bool flag); | 209 virtual void SetTakesFocusOnlyOnMouseDown(bool flag); |
211 virtual gfx::Rect GetWindowRect(); | 210 virtual gfx::Rect GetWindowRect(); |
212 virtual gfx::Rect GetRootWindowRect(); | 211 virtual gfx::Rect GetRootWindowRect(); |
213 virtual void SetActive(bool active); | 212 virtual void SetActive(bool active); |
214 virtual void SetWindowVisibility(bool visible); | 213 virtual void SetWindowVisibility(bool visible); |
215 virtual void WindowFrameChanged(); | 214 virtual void WindowFrameChanged(); |
216 virtual void SetBackground(const SkBitmap& background); | 215 virtual void SetBackground(const SkBitmap& background); |
217 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 216 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
218 | 217 |
219 virtual void OnAccessibilityNotifications( | 218 virtual void OnAccessibilityNotifications( |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 350 |
352 // When rendering transitions from gpu to software, the gpu widget can't be | 351 // When rendering transitions from gpu to software, the gpu widget can't be |
353 // hidden until the software backing store has been updated. This variable is | 352 // hidden until the software backing store has been updated. This variable is |
354 // set when the gpu widget needs to be hidden once a paint is completed. | 353 // set when the gpu widget needs to be hidden once a paint is completed. |
355 bool needs_gpu_visibility_update_after_repaint_; | 354 bool needs_gpu_visibility_update_after_repaint_; |
356 | 355 |
357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 356 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
358 }; | 357 }; |
359 | 358 |
360 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 359 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |