| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
| 9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
| 10 #endif | 10 #endif |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 CopyFromCompositingSurfaceCallback; | 63 CopyFromCompositingSurfaceCallback; |
| 64 | 64 |
| 65 // Basic implementation shared by concrete RenderWidgetHostView subclasses. | 65 // Basic implementation shared by concrete RenderWidgetHostView subclasses. |
| 66 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | 66 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
| 67 public IPC::Listener { | 67 public IPC::Listener { |
| 68 public: | 68 public: |
| 69 ~RenderWidgetHostViewBase() override; | 69 ~RenderWidgetHostViewBase() override; |
| 70 | 70 |
| 71 // RenderWidgetHostView implementation. | 71 // RenderWidgetHostView implementation. |
| 72 void SetBackgroundColor(SkColor color) override; | 72 void SetBackgroundColor(SkColor color) override; |
| 73 void SetBackgroundColorToDefault() final override; | 73 void SetBackgroundColorToDefault() final; |
| 74 bool GetBackgroundOpaque() override; | 74 bool GetBackgroundOpaque() override; |
| 75 ui::TextInputClient* GetTextInputClient() override; | 75 ui::TextInputClient* GetTextInputClient() override; |
| 76 bool IsShowingContextMenu() const override; | 76 bool IsShowingContextMenu() const override; |
| 77 void SetShowingContextMenu(bool showing_menu) override; | 77 void SetShowingContextMenu(bool showing_menu) override; |
| 78 base::string16 GetSelectedText() const override; | 78 base::string16 GetSelectedText() const override; |
| 79 bool IsMouseLocked() override; | 79 bool IsMouseLocked() override; |
| 80 gfx::Size GetVisibleViewportSize() const override; | 80 gfx::Size GetVisibleViewportSize() const override; |
| 81 void SetInsets(const gfx::Insets& insets) override; | 81 void SetInsets(const gfx::Insets& insets) override; |
| 82 void BeginFrameSubscription( | 82 void BeginFrameSubscription( |
| 83 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 83 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 425 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 426 | 426 |
| 427 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 427 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 428 | 428 |
| 429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 430 }; | 430 }; |
| 431 | 431 |
| 432 } // namespace content | 432 } // namespace content |
| 433 | 433 |
| 434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |