| 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 | 9 |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual gfx::Rect GetViewBounds() const; | 71 virtual gfx::Rect GetViewBounds() const; |
| 72 virtual void UpdateCursor(const WebCursor& cursor); | 72 virtual void UpdateCursor(const WebCursor& cursor); |
| 73 virtual void UpdateCursorIfOverSelf(); | 73 virtual void UpdateCursorIfOverSelf(); |
| 74 virtual void SetIsLoading(bool is_loading); | 74 virtual void SetIsLoading(bool is_loading); |
| 75 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); | 75 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); |
| 76 virtual void DidPaintRect(const gfx::Rect& rect); | 76 virtual void DidPaintRect(const gfx::Rect& rect); |
| 77 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy); | 77 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy); |
| 78 virtual void RenderViewGone(); | 78 virtual void RenderViewGone(); |
| 79 virtual void Destroy(); | 79 virtual void Destroy(); |
| 80 virtual void SetTooltipText(const std::wstring& tooltip_text); | 80 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 81 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 81 | 82 |
| 82 private: | 83 private: |
| 83 // Shuts down the render_widget_host_. This is a separate function so we can | 84 // Shuts down the render_widget_host_. This is a separate function so we can |
| 84 // invoke it from the message loop. | 85 // invoke it from the message loop. |
| 85 void ShutdownHost(); | 86 void ShutdownHost(); |
| 86 | 87 |
| 87 // Redraws the window asynchronously. | 88 // Redraws the window asynchronously. |
| 88 void Redraw(const gfx::Rect& invalid_rect); | 89 void Redraw(const gfx::Rect& invalid_rect); |
| 89 | 90 |
| 90 // The associated view. | 91 // The associated view. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 109 // The time at which this view started displaying white pixels as a result of | 110 // The time at which this view started displaying white pixels as a result of |
| 110 // not having anything to paint (empty backing store from renderer). This | 111 // not having anything to paint (empty backing store from renderer). This |
| 111 // value returns true for is_null() if we are not recording whiteout times. | 112 // value returns true for is_null() if we are not recording whiteout times. |
| 112 base::TimeTicks whiteout_start_time_; | 113 base::TimeTicks whiteout_start_time_; |
| 113 | 114 |
| 114 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 115 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 118 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 118 | 119 |
| OLD | NEW |