| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void SetTooltipText(const std::wstring& tooltip_text); | 71 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 72 virtual void SelectionChanged(const std::string& text); | 72 virtual void SelectionChanged(const std::string& text); |
| 73 virtual void ShowingContextMenu(bool showing); | 73 virtual void ShowingContextMenu(bool showing); |
| 74 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 74 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 75 virtual void SetBackground(const SkBitmap& background); | 75 virtual void SetBackground(const SkBitmap& background); |
| 76 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); | 76 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); |
| 77 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); | 77 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); |
| 78 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); | 78 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); |
| 79 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 79 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 80 virtual void AcceleratedCompositingActivated(bool activated); | 80 virtual void AcceleratedCompositingActivated(bool activated); |
| 81 virtual gfx::PluginWindowHandle AcquireCompositingSurface(); |
| 82 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface); |
| 81 | 83 |
| 82 // On some systems, there can be two native views, where an outer native view | 84 // On some systems, there can be two native views, where an outer native view |
| 83 // contains the inner native view (e.g. when using GTK+). This returns the | 85 // contains the inner native view (e.g. when using GTK+). This returns the |
| 84 // inner view. This can return NULL when it's not attached to a view. | 86 // inner view. This can return NULL when it's not attached to a view. |
| 85 gfx::NativeView GetInnerNativeView() const; | 87 gfx::NativeView GetInnerNativeView() const; |
| 86 | 88 |
| 87 virtual void Paint(gfx::Canvas* canvas); | 89 virtual void Paint(gfx::Canvas* canvas); |
| 88 | 90 |
| 89 // Overridden from views::View. | 91 // Overridden from views::View. |
| 90 virtual std::string GetClassName() const; | 92 virtual std::string GetClassName() const; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 175 |
| 174 // The touch-event. Its touch-points are updated as necessary. A new | 176 // The touch-event. Its touch-points are updated as necessary. A new |
| 175 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is | 177 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is |
| 176 // removed from the list on an ET_TOUCH_RELEASED event. | 178 // removed from the list on an ET_TOUCH_RELEASED event. |
| 177 WebKit::WebTouchEvent touch_event_; | 179 WebKit::WebTouchEvent touch_event_; |
| 178 | 180 |
| 179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); | 181 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 184 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
| OLD | NEW |