| 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; |
| 102 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 105 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 103 #if defined(OS_POSIX) || defined(USE_AURA) | 106 #if defined(OS_POSIX) || defined(USE_AURA) |
| 104 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); | 107 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); |
| 105 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 108 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
| 106 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 109 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
| 107 #endif | 110 #endif |
| 108 #if defined(TOOLKIT_USES_GTK) | 111 #if defined(TOOLKIT_USES_GTK) |
| 109 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; | 112 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; |
| 110 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; | 113 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; |
| 111 #endif | 114 #endif |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 virtual void OnInputMethodChanged() OVERRIDE; | 183 virtual void OnInputMethodChanged() OVERRIDE; |
| 181 virtual bool ChangeTextDirectionAndLayoutAlignment( | 184 virtual bool ChangeTextDirectionAndLayoutAlignment( |
| 182 base::i18n::TextDirection direction) OVERRIDE; | 185 base::i18n::TextDirection direction) OVERRIDE; |
| 183 | 186 |
| 184 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 187 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 185 virtual void AcceleratedSurfaceNew( | 188 virtual void AcceleratedSurfaceNew( |
| 186 int32 width, | 189 int32 width, |
| 187 int32 height, | 190 int32 height, |
| 188 uint64* surface_id, | 191 uint64* surface_id, |
| 189 TransportDIB::Handle* surface_handle) OVERRIDE; | 192 TransportDIB::Handle* surface_handle) OVERRIDE; |
| 190 virtual void AcceleratedSurfaceBuffersSwapped( | |
| 191 uint64 surface_id, | |
| 192 int32 route_id, | |
| 193 int gpu_host_id) OVERRIDE; | |
| 194 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; | 193 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; |
| 195 | 194 |
| 196 // CompositorObserver implementation: | 195 // CompositorObserver implementation: |
| 197 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; | 196 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; |
| 198 #endif | 197 #endif |
| 199 | 198 |
| 200 protected: | 199 protected: |
| 201 // Overridden from views::View. | 200 // Overridden from views::View. |
| 202 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 201 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 203 virtual void OnFocus() OVERRIDE; | 202 virtual void OnFocus() OVERRIDE; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 309 |
| 311 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 310 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 312 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> > | 311 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> > |
| 313 accelerated_surface_containers_; | 312 accelerated_surface_containers_; |
| 314 #endif | 313 #endif |
| 315 | 314 |
| 316 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); | 315 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); |
| 317 }; | 316 }; |
| 318 | 317 |
| 319 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
| OLD | NEW |