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

Side by Side Diff: content/browser/web_contents/web_contents_view_guest.h

Issue 628213003: Replace OVERRIDE and FINAL with override and final in content/browser/web_contents (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_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 27 matching lines...) Expand all
38 void OnGuestAttached(WebContentsView* parent_view); 38 void OnGuestAttached(WebContentsView* parent_view);
39 39
40 void OnGuestDetached(WebContentsView* old_parent_view); 40 void OnGuestDetached(WebContentsView* old_parent_view);
41 41
42 // Converts the guest specific coordinates in |params| to embedder specific 42 // Converts the guest specific coordinates in |params| to embedder specific
43 // ones. 43 // ones.
44 ContextMenuParams ConvertContextMenuParams( 44 ContextMenuParams ConvertContextMenuParams(
45 const ContextMenuParams& params) const; 45 const ContextMenuParams& params) const;
46 46
47 // WebContentsView implementation -------------------------------------------- 47 // WebContentsView implementation --------------------------------------------
48 virtual gfx::NativeView GetNativeView() const OVERRIDE; 48 virtual gfx::NativeView GetNativeView() const override;
49 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 49 virtual gfx::NativeView GetContentNativeView() const override;
50 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 50 virtual gfx::NativeWindow GetTopLevelNativeWindow() const override;
51 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 51 virtual void GetContainerBounds(gfx::Rect* out) const override;
52 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 52 virtual void SizeContents(const gfx::Size& size) override;
53 virtual void Focus() OVERRIDE; 53 virtual void Focus() override;
54 virtual void SetInitialFocus() OVERRIDE; 54 virtual void SetInitialFocus() override;
55 virtual void StoreFocus() OVERRIDE; 55 virtual void StoreFocus() override;
56 virtual void RestoreFocus() OVERRIDE; 56 virtual void RestoreFocus() override;
57 virtual DropData* GetDropData() const OVERRIDE; 57 virtual DropData* GetDropData() const override;
58 virtual gfx::Rect GetViewBounds() const OVERRIDE; 58 virtual gfx::Rect GetViewBounds() const override;
59 virtual void CreateView(const gfx::Size& initial_size, 59 virtual void CreateView(const gfx::Size& initial_size,
60 gfx::NativeView context) OVERRIDE; 60 gfx::NativeView context) override;
61 virtual RenderWidgetHostViewBase* CreateViewForWidget( 61 virtual RenderWidgetHostViewBase* CreateViewForWidget(
62 RenderWidgetHost* render_widget_host) OVERRIDE; 62 RenderWidgetHost* render_widget_host) override;
63 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget( 63 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget(
64 RenderWidgetHost* render_widget_host) OVERRIDE; 64 RenderWidgetHost* render_widget_host) override;
65 virtual void SetPageTitle(const base::string16& title) OVERRIDE; 65 virtual void SetPageTitle(const base::string16& title) override;
66 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 66 virtual void RenderViewCreated(RenderViewHost* host) override;
67 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 67 virtual void RenderViewSwappedIn(RenderViewHost* host) override;
68 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; 68 virtual void SetOverscrollControllerEnabled(bool enabled) override;
69 #if defined(OS_MACOSX) 69 #if defined(OS_MACOSX)
70 virtual void SetAllowOtherViews(bool allow) OVERRIDE; 70 virtual void SetAllowOtherViews(bool allow) override;
71 virtual bool GetAllowOtherViews() const OVERRIDE; 71 virtual bool GetAllowOtherViews() const override;
72 virtual bool IsEventTracking() const OVERRIDE; 72 virtual bool IsEventTracking() const override;
73 virtual void CloseTabAfterEventTracking() OVERRIDE; 73 virtual void CloseTabAfterEventTracking() override;
74 #endif 74 #endif
75 75
76 // Backend implementation of RenderViewHostDelegateView. 76 // Backend implementation of RenderViewHostDelegateView.
77 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 77 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
78 const ContextMenuParams& params) OVERRIDE; 78 const ContextMenuParams& params) override;
79 virtual void StartDragging(const DropData& drop_data, 79 virtual void StartDragging(const DropData& drop_data,
80 blink::WebDragOperationsMask allowed_ops, 80 blink::WebDragOperationsMask allowed_ops,
81 const gfx::ImageSkia& image, 81 const gfx::ImageSkia& image,
82 const gfx::Vector2d& image_offset, 82 const gfx::Vector2d& image_offset,
83 const DragEventSourceInfo& event_info) OVERRIDE; 83 const DragEventSourceInfo& event_info) override;
84 virtual void UpdateDragCursor(blink::WebDragOperation operation) OVERRIDE; 84 virtual void UpdateDragCursor(blink::WebDragOperation operation) override;
85 virtual void GotFocus() OVERRIDE; 85 virtual void GotFocus() override;
86 virtual void TakeFocus(bool reverse) OVERRIDE; 86 virtual void TakeFocus(bool reverse) override;
87 87
88 private: 88 private:
89 // The WebContentsImpl whose contents we display. 89 // The WebContentsImpl whose contents we display.
90 WebContentsImpl* web_contents_; 90 WebContentsImpl* web_contents_;
91 BrowserPluginGuest* guest_; 91 BrowserPluginGuest* guest_;
92 // The platform dependent view backing this WebContentsView. 92 // The platform dependent view backing this WebContentsView.
93 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|. 93 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|.
94 scoped_ptr<WebContentsView> platform_view_; 94 scoped_ptr<WebContentsView> platform_view_;
95 gfx::Size size_; 95 gfx::Size size_;
96 96
97 // Delegate view for guest's platform view. 97 // Delegate view for guest's platform view.
98 RenderViewHostDelegateView* platform_view_delegate_view_; 98 RenderViewHostDelegateView* platform_view_delegate_view_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); 100 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest);
101 }; 101 };
102 102
103 } // namespace content 103 } // namespace content
104 104
105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698