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 typedef const base::Callback<void(bool, const SkBitmap&)> | 63 typedef const base::Callback<void(bool, const SkBitmap&)> |
64 CopyFromCompositingSurfaceCallback; | 64 CopyFromCompositingSurfaceCallback; |
65 | 65 |
66 // Basic implementation shared by concrete RenderWidgetHostView subclasses. | 66 // Basic implementation shared by concrete RenderWidgetHostView subclasses. |
67 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | 67 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
68 public IPC::Listener { | 68 public IPC::Listener { |
69 public: | 69 public: |
70 virtual ~RenderWidgetHostViewBase(); | 70 virtual ~RenderWidgetHostViewBase(); |
71 | 71 |
72 // RenderWidgetHostView implementation. | 72 // RenderWidgetHostView implementation. |
73 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; | 73 virtual void SetBackgroundOpaque(bool opaque) override; |
74 virtual bool GetBackgroundOpaque() OVERRIDE; | 74 virtual bool GetBackgroundOpaque() override; |
75 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 75 virtual ui::TextInputClient* GetTextInputClient() override; |
76 virtual bool IsShowingContextMenu() const OVERRIDE; | 76 virtual bool IsShowingContextMenu() const override; |
77 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; | 77 virtual void SetShowingContextMenu(bool showing_menu) override; |
78 virtual base::string16 GetSelectedText() const OVERRIDE; | 78 virtual base::string16 GetSelectedText() const override; |
79 virtual bool IsMouseLocked() OVERRIDE; | 79 virtual bool IsMouseLocked() override; |
80 virtual gfx::Size GetVisibleViewportSize() const OVERRIDE; | 80 virtual gfx::Size GetVisibleViewportSize() const override; |
81 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; | 81 virtual void SetInsets(const gfx::Insets& insets) override; |
82 virtual void BeginFrameSubscription( | 82 virtual void BeginFrameSubscription( |
83 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 83 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
84 virtual void EndFrameSubscription() OVERRIDE; | 84 virtual void EndFrameSubscription() override; |
85 | 85 |
86 // IPC::Listener implementation: | 86 // IPC::Listener implementation: |
87 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 87 virtual bool OnMessageReceived(const IPC::Message& msg) override; |
88 | 88 |
89 // Called by the host when the input flush has completed. | 89 // Called by the host when the input flush has completed. |
90 void OnDidFlushInput(); | 90 void OnDidFlushInput(); |
91 | 91 |
92 void SetPopupType(blink::WebPopupType popup_type); | 92 void SetPopupType(blink::WebPopupType popup_type); |
93 | 93 |
94 blink::WebPopupType GetPopupType(); | 94 blink::WebPopupType GetPopupType(); |
95 | 95 |
96 // Return a value that is incremented each time the renderer swaps a new frame | 96 // Return a value that is incremented each time the renderer swaps a new frame |
97 // to the view. | 97 // to the view. |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
424 | 424 |
425 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 425 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
426 | 426 |
427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
428 }; | 428 }; |
429 | 429 |
430 } // namespace content | 430 } // namespace content |
431 | 431 |
432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |