OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void Destroy() OVERRIDE; | 92 virtual void Destroy() OVERRIDE; |
93 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; | 93 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; |
94 virtual void SelectionChanged(const string16& text, | 94 virtual void SelectionChanged(const string16& text, |
95 size_t offset, | 95 size_t offset, |
96 const ui::Range& range) OVERRIDE; | 96 const ui::Range& range) OVERRIDE; |
97 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, | 97 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, |
98 const gfx::Rect& end_rect) OVERRIDE; | 98 const gfx::Rect& end_rect) OVERRIDE; |
99 virtual void ShowingContextMenu(bool showing) OVERRIDE; | 99 virtual void ShowingContextMenu(bool showing) OVERRIDE; |
100 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 100 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
101 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 101 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
102 virtual void AcceleratedSurfaceBuffersSwapped( | |
103 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | |
104 int gpu_host_id) OVERRIDE; | |
105 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 102 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
106 #if defined(OS_POSIX) || defined(USE_AURA) | 103 #if defined(OS_POSIX) || defined(USE_AURA) |
107 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); | 104 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); |
108 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 105 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
109 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 106 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
110 #endif | 107 #endif |
111 #if defined(TOOLKIT_USES_GTK) | 108 #if defined(TOOLKIT_USES_GTK) |
112 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; | 109 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; |
113 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; | 110 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; |
114 #endif | 111 #endif |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual void OnInputMethodChanged() OVERRIDE; | 180 virtual void OnInputMethodChanged() OVERRIDE; |
184 virtual bool ChangeTextDirectionAndLayoutAlignment( | 181 virtual bool ChangeTextDirectionAndLayoutAlignment( |
185 base::i18n::TextDirection direction) OVERRIDE; | 182 base::i18n::TextDirection direction) OVERRIDE; |
186 | 183 |
187 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 184 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
188 virtual void AcceleratedSurfaceNew( | 185 virtual void AcceleratedSurfaceNew( |
189 int32 width, | 186 int32 width, |
190 int32 height, | 187 int32 height, |
191 uint64* surface_id, | 188 uint64* surface_id, |
192 TransportDIB::Handle* surface_handle) OVERRIDE; | 189 TransportDIB::Handle* surface_handle) OVERRIDE; |
| 190 virtual void AcceleratedSurfaceBuffersSwapped( |
| 191 uint64 surface_id, |
| 192 int32 route_id, |
| 193 int gpu_host_id) OVERRIDE; |
193 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; | 194 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; |
194 | 195 |
195 // CompositorObserver implementation: | 196 // CompositorObserver implementation: |
196 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; | 197 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; |
197 #endif | 198 #endif |
198 | 199 |
199 protected: | 200 protected: |
200 // Overridden from views::View. | 201 // Overridden from views::View. |
201 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 202 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
202 virtual void OnFocus() OVERRIDE; | 203 virtual void OnFocus() OVERRIDE; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 310 |
310 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 311 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
311 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> > | 312 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> > |
312 accelerated_surface_containers_; | 313 accelerated_surface_containers_; |
313 #endif | 314 #endif |
314 | 315 |
315 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); | 316 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); |
316 }; | 317 }; |
317 | 318 |
318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 319 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
OLD | NEW |