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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (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_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/omnibox/omnibox_current_page_delegate.h" 9 #include "chrome/browser/ui/omnibox/omnibox_current_page_delegate.h"
10 10
11 class OmniboxEditController; 11 class OmniboxEditController;
12 class Profile; 12 class Profile;
13 13
14 class OmniboxCurrentPageDelegateImpl : public OmniboxCurrentPageDelegate { 14 class OmniboxCurrentPageDelegateImpl : public OmniboxCurrentPageDelegate {
15 public: 15 public:
16 explicit OmniboxCurrentPageDelegateImpl(OmniboxEditController* controller, 16 explicit OmniboxCurrentPageDelegateImpl(OmniboxEditController* controller,
17 Profile* profile); 17 Profile* profile);
18 virtual ~OmniboxCurrentPageDelegateImpl(); 18 ~OmniboxCurrentPageDelegateImpl() override;
19 19
20 // OmniboxCurrentPageDelegate. 20 // OmniboxCurrentPageDelegate.
21 virtual bool CurrentPageExists() const override; 21 bool CurrentPageExists() const override;
22 virtual const GURL& GetURL() const override; 22 const GURL& GetURL() const override;
23 virtual bool IsInstantNTP() const override; 23 bool IsInstantNTP() const override;
24 virtual bool IsSearchResultsPage() const override; 24 bool IsSearchResultsPage() const override;
25 virtual bool IsLoading() const override; 25 bool IsLoading() const override;
26 virtual content::NavigationController& 26 content::NavigationController& GetNavigationController() const override;
27 GetNavigationController() const override; 27 const SessionID& GetSessionID() const override;
28 virtual const SessionID& GetSessionID() const override; 28 bool ProcessExtensionKeyword(TemplateURL* template_url,
29 virtual bool ProcessExtensionKeyword( 29 const AutocompleteMatch& match,
30 TemplateURL* template_url, 30 WindowOpenDisposition disposition) override;
31 const AutocompleteMatch& match, 31 void OnInputStateChanged() override;
32 WindowOpenDisposition disposition) override; 32 void OnFocusChanged(OmniboxFocusState state,
33 virtual void OnInputStateChanged() override; 33 OmniboxFocusChangeReason reason) override;
34 virtual void OnFocusChanged(OmniboxFocusState state, 34 void DoPrerender(const AutocompleteMatch& match) override;
35 OmniboxFocusChangeReason reason) override; 35 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion) override;
36 virtual void DoPrerender(const AutocompleteMatch& match) override;
37 virtual void SetSuggestionToPrefetch(
38 const InstantSuggestion& suggestion) override;
39 36
40 private: 37 private:
41 OmniboxEditController* controller_; 38 OmniboxEditController* controller_;
42 Profile* profile_; 39 Profile* profile_;
43 40
44 DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl); 41 DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl);
45 }; 42 };
46 43
47 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ 44 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698