OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_GTK_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 void UpdateCursor(const WebCursor& cursor); | 40 void UpdateCursor(const WebCursor& cursor); |
41 void UpdateCursorIfOverSelf(); | 41 void UpdateCursorIfOverSelf(); |
42 void SetIsLoading(bool is_loading); | 42 void SetIsLoading(bool is_loading); |
43 void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); | 43 void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); |
44 void DidPaintRect(const gfx::Rect& rect); | 44 void DidPaintRect(const gfx::Rect& rect); |
45 void DidScrollRect( | 45 void DidScrollRect( |
46 const gfx::Rect& rect, int dx, int dy); | 46 const gfx::Rect& rect, int dx, int dy); |
47 void RenderViewGone(); | 47 void RenderViewGone(); |
48 void Destroy(); | 48 void Destroy(); |
49 void SetTooltipText(const std::wstring& tooltip_text); | 49 void SetTooltipText(const std::wstring& tooltip_text); |
| 50 BackingStore* AllocBackingStore(const gfx::Size& size); |
50 // --------------------------------------------------------------------------- | 51 // --------------------------------------------------------------------------- |
51 | 52 |
52 gfx::NativeView native_view() const { return view_; } | 53 gfx::NativeView native_view() const { return view_; } |
53 | 54 |
54 void Paint(const gfx::Rect&); | 55 void Paint(const gfx::Rect&); |
55 | 56 |
56 private: | 57 private: |
57 // The model object. | 58 // The model object. |
58 RenderWidgetHost *const host_; | 59 RenderWidgetHost *const host_; |
59 // The native UI widget. | 60 // The native UI widget. |
60 gfx::NativeView view_; | 61 gfx::NativeView view_; |
61 | 62 |
62 // The cursor for the page. This is passed up from the renderer. | 63 // The cursor for the page. This is passed up from the renderer. |
63 WebCursor current_cursor_; | 64 WebCursor current_cursor_; |
64 }; | 65 }; |
65 | 66 |
66 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 67 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |