| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 virtual bool IsShowing(); | 193 virtual bool IsShowing(); |
| 194 virtual gfx::Rect GetViewBounds() const; | 194 virtual gfx::Rect GetViewBounds() const; |
| 195 virtual void UpdateCursor(const WebCursor& cursor); | 195 virtual void UpdateCursor(const WebCursor& cursor); |
| 196 virtual void SetIsLoading(bool is_loading); | 196 virtual void SetIsLoading(bool is_loading); |
| 197 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType state, | 197 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType state, |
| 198 const gfx::Rect& caret_rect); | 198 const gfx::Rect& caret_rect); |
| 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(base::TerminationStatus status, |
| 204 int error_code); |
| 204 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}; | 205 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}; |
| 205 virtual void Destroy(); | 206 virtual void Destroy(); |
| 206 virtual void SetTooltipText(const std::wstring& tooltip_text); | 207 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 207 virtual void SelectionChanged(const std::string& text); | 208 virtual void SelectionChanged(const std::string& text); |
| 208 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 209 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 209 virtual void SetTakesFocusOnlyOnMouseDown(bool flag); | 210 virtual void SetTakesFocusOnlyOnMouseDown(bool flag); |
| 210 virtual gfx::Rect GetWindowRect(); | 211 virtual gfx::Rect GetWindowRect(); |
| 211 virtual gfx::Rect GetRootWindowRect(); | 212 virtual gfx::Rect GetRootWindowRect(); |
| 212 virtual void SetActive(bool active); | 213 virtual void SetActive(bool active); |
| 213 virtual void SetWindowVisibility(bool visible); | 214 virtual void SetWindowVisibility(bool visible); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 351 |
| 351 // When rendering transitions from gpu to software, the gpu widget can't be | 352 // When rendering transitions from gpu to software, the gpu widget can't be |
| 352 // hidden until the software backing store has been updated. This variable is | 353 // hidden until the software backing store has been updated. This variable is |
| 353 // set when the gpu widget needs to be hidden once a paint is completed. | 354 // set when the gpu widget needs to be hidden once a paint is completed. |
| 354 bool needs_gpu_visibility_update_after_repaint_; | 355 bool needs_gpu_visibility_update_after_repaint_; |
| 355 | 356 |
| 356 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 360 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |