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

Side by Side Diff: chrome/browser/extensions/extension_view_host.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/web_modal/popup_manager.h" 9 #include "components/web_modal/popup_manager.h"
10 #include "components/web_modal/web_contents_modal_dialog_host.h" 10 #include "components/web_modal/web_contents_modal_dialog_host.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void SetAssociatedWebContents(content::WebContents* web_contents); 49 void SetAssociatedWebContents(content::WebContents* web_contents);
50 50
51 // Handles keyboard events that were not handled by HandleKeyboardEvent(). 51 // Handles keyboard events that were not handled by HandleKeyboardEvent().
52 // Platform specific implementation may override this method to handle the 52 // Platform specific implementation may override this method to handle the
53 // event in platform specific way. 53 // event in platform specific way.
54 virtual void UnhandledKeyboardEvent( 54 virtual void UnhandledKeyboardEvent(
55 content::WebContents* source, 55 content::WebContents* source,
56 const content::NativeWebKeyboardEvent& event); 56 const content::NativeWebKeyboardEvent& event);
57 57
58 // ExtensionHost 58 // ExtensionHost
59 virtual void OnDidStopLoading() OVERRIDE; 59 virtual void OnDidStopLoading() override;
60 virtual void OnDocumentAvailable() OVERRIDE; 60 virtual void OnDocumentAvailable() override;
61 virtual void LoadInitialURL() OVERRIDE; 61 virtual void LoadInitialURL() override;
62 virtual bool IsBackgroundPage() const OVERRIDE; 62 virtual bool IsBackgroundPage() const override;
63 63
64 // content::WebContentsDelegate 64 // content::WebContentsDelegate
65 virtual content::WebContents* OpenURLFromTab( 65 virtual content::WebContents* OpenURLFromTab(
66 content::WebContents* source, 66 content::WebContents* source,
67 const content::OpenURLParams& params) OVERRIDE; 67 const content::OpenURLParams& params) override;
68 virtual bool PreHandleKeyboardEvent( 68 virtual bool PreHandleKeyboardEvent(
69 content::WebContents* source, 69 content::WebContents* source,
70 const content::NativeWebKeyboardEvent& event, 70 const content::NativeWebKeyboardEvent& event,
71 bool* is_keyboard_shortcut) OVERRIDE; 71 bool* is_keyboard_shortcut) override;
72 virtual void HandleKeyboardEvent( 72 virtual void HandleKeyboardEvent(
73 content::WebContents* source, 73 content::WebContents* source,
74 const content::NativeWebKeyboardEvent& event) OVERRIDE; 74 const content::NativeWebKeyboardEvent& event) override;
75 virtual bool PreHandleGestureEvent( 75 virtual bool PreHandleGestureEvent(
76 content::WebContents* source, 76 content::WebContents* source,
77 const blink::WebGestureEvent& event) OVERRIDE; 77 const blink::WebGestureEvent& event) override;
78 virtual content::ColorChooser* OpenColorChooser( 78 virtual content::ColorChooser* OpenColorChooser(
79 content::WebContents* web_contents, 79 content::WebContents* web_contents,
80 SkColor color, 80 SkColor color,
81 const std::vector<content::ColorSuggestion>& suggestions) OVERRIDE; 81 const std::vector<content::ColorSuggestion>& suggestions) override;
82 virtual void RunFileChooser( 82 virtual void RunFileChooser(
83 content::WebContents* tab, 83 content::WebContents* tab,
84 const content::FileChooserParams& params) OVERRIDE; 84 const content::FileChooserParams& params) override;
85 virtual void ResizeDueToAutoResize(content::WebContents* source, 85 virtual void ResizeDueToAutoResize(content::WebContents* source,
86 const gfx::Size& new_size) OVERRIDE; 86 const gfx::Size& new_size) override;
87 87
88 // content::WebContentsObserver 88 // content::WebContentsObserver
89 virtual void RenderViewCreated( 89 virtual void RenderViewCreated(
90 content::RenderViewHost* render_view_host) OVERRIDE; 90 content::RenderViewHost* render_view_host) override;
91 91
92 // web_modal::WebContentsModalDialogManagerDelegate 92 // web_modal::WebContentsModalDialogManagerDelegate
93 virtual web_modal::WebContentsModalDialogHost* 93 virtual web_modal::WebContentsModalDialogHost*
94 GetWebContentsModalDialogHost() OVERRIDE; 94 GetWebContentsModalDialogHost() override;
95 virtual bool IsWebContentsVisible( 95 virtual bool IsWebContentsVisible(
96 content::WebContents* web_contents) OVERRIDE; 96 content::WebContents* web_contents) override;
97 97
98 // web_modal::WebContentsModalDialogHost 98 // web_modal::WebContentsModalDialogHost
99 virtual gfx::NativeView GetHostView() const OVERRIDE; 99 virtual gfx::NativeView GetHostView() const override;
100 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 100 virtual gfx::Point GetDialogPosition(const gfx::Size& size) override;
101 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; 101 virtual gfx::Size GetMaximumDialogSize() override;
102 virtual void AddObserver( 102 virtual void AddObserver(
103 web_modal::ModalDialogHostObserver* observer) OVERRIDE; 103 web_modal::ModalDialogHostObserver* observer) override;
104 virtual void RemoveObserver( 104 virtual void RemoveObserver(
105 web_modal::ModalDialogHostObserver* observer) OVERRIDE; 105 web_modal::ModalDialogHostObserver* observer) override;
106 106
107 // extensions::ExtensionFunctionDispatcher::Delegate 107 // extensions::ExtensionFunctionDispatcher::Delegate
108 virtual WindowController* GetExtensionWindowController() const OVERRIDE; 108 virtual WindowController* GetExtensionWindowController() const override;
109 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; 109 virtual content::WebContents* GetAssociatedWebContents() const override;
110 virtual content::WebContents* GetVisibleWebContents() const OVERRIDE; 110 virtual content::WebContents* GetVisibleWebContents() const override;
111 111
112 // content::NotificationObserver 112 // content::NotificationObserver
113 virtual void Observe(int type, 113 virtual void Observe(int type,
114 const content::NotificationSource& source, 114 const content::NotificationSource& source,
115 const content::NotificationDetails& details) OVERRIDE; 115 const content::NotificationDetails& details) override;
116 116
117 private: 117 private:
118 // Implemented per-platform. Create the platform-specific ExtensionView. 118 // Implemented per-platform. Create the platform-specific ExtensionView.
119 static scoped_ptr<ExtensionView> CreateExtensionView(ExtensionViewHost* host, 119 static scoped_ptr<ExtensionView> CreateExtensionView(ExtensionViewHost* host,
120 Browser* browser); 120 Browser* browser);
121 121
122 // Insert a default style sheet for Extension Infobars. 122 // Insert a default style sheet for Extension Infobars.
123 void InsertInfobarCSS(); 123 void InsertInfobarCSS();
124 124
125 // Optional view that shows the rendered content in the UI. 125 // Optional view that shows the rendered content in the UI.
(...skipping 11 matching lines...) Expand all
137 // window's popup manager. Should only be used when the EVH is created without 137 // window's popup manager. Should only be used when the EVH is created without
138 // a parent window. 138 // a parent window.
139 scoped_ptr<web_modal::PopupManager> popup_manager_; 139 scoped_ptr<web_modal::PopupManager> popup_manager_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost); 141 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost);
142 }; 142 };
143 143
144 } // namespace extensions 144 } // namespace extensions
145 145
146 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ 146 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_url_rewrite_browsertest.cc ('k') | chrome/browser/extensions/extension_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698