Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // TODO(Sikugu): Though we have the return status of the result here, 59 // TODO(Sikugu): Though we have the return status of the result here,
60 // we should add the reason for failure as a new parameter to handle cases 60 // we should add the reason for failure as a new parameter to handle cases
61 // efficiently. 61 // efficiently.
62 typedef const base::Callback<void(bool, const SkBitmap&)> 62 typedef const base::Callback<void(bool, const SkBitmap&)>
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 virtual ~RenderWidgetHostViewBase(); 69 ~RenderWidgetHostViewBase() override;
70 70
71 // RenderWidgetHostView implementation. 71 // RenderWidgetHostView implementation.
72 virtual void SetBackgroundOpaque(bool opaque) override; 72 void SetBackgroundOpaque(bool opaque) override;
73 virtual bool GetBackgroundOpaque() override; 73 bool GetBackgroundOpaque() override;
74 virtual ui::TextInputClient* GetTextInputClient() override; 74 ui::TextInputClient* GetTextInputClient() override;
75 virtual bool IsShowingContextMenu() const override; 75 bool IsShowingContextMenu() const override;
76 virtual void SetShowingContextMenu(bool showing_menu) override; 76 void SetShowingContextMenu(bool showing_menu) override;
77 virtual base::string16 GetSelectedText() const override; 77 base::string16 GetSelectedText() const override;
78 virtual bool IsMouseLocked() override; 78 bool IsMouseLocked() override;
79 virtual gfx::Size GetVisibleViewportSize() const override; 79 gfx::Size GetVisibleViewportSize() const override;
80 virtual void SetInsets(const gfx::Insets& insets) override; 80 void SetInsets(const gfx::Insets& insets) override;
81 virtual void BeginFrameSubscription( 81 void BeginFrameSubscription(
82 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 82 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
83 virtual void EndFrameSubscription() override; 83 void EndFrameSubscription() override;
84 84
85 // IPC::Listener implementation: 85 // IPC::Listener implementation:
86 virtual bool OnMessageReceived(const IPC::Message& msg) override; 86 bool OnMessageReceived(const IPC::Message& msg) override;
87 87
88 // Called by the host when the input flush has completed. 88 // Called by the host when the input flush has completed.
89 void OnDidFlushInput(); 89 void OnDidFlushInput();
90 90
91 void SetPopupType(blink::WebPopupType popup_type); 91 void SetPopupType(blink::WebPopupType popup_type);
92 92
93 blink::WebPopupType GetPopupType(); 93 blink::WebPopupType GetPopupType();
94 94
95 // Return a value that is incremented each time the renderer swaps a new frame 95 // Return a value that is incremented each time the renderer swaps a new frame
96 // to the view. 96 // to the view.
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698