OLD | NEW |
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 virtual ~OmniboxCurrentPageDelegateImpl(); |
19 | 19 |
20 // OmniboxCurrentPageDelegate. | 20 // OmniboxCurrentPageDelegate. |
21 virtual bool CurrentPageExists() const OVERRIDE; | 21 virtual bool CurrentPageExists() const override; |
22 virtual const GURL& GetURL() const OVERRIDE; | 22 virtual const GURL& GetURL() const override; |
23 virtual bool IsInstantNTP() const OVERRIDE; | 23 virtual bool IsInstantNTP() const override; |
24 virtual bool IsSearchResultsPage() const OVERRIDE; | 24 virtual bool IsSearchResultsPage() const override; |
25 virtual bool IsLoading() const OVERRIDE; | 25 virtual bool IsLoading() const override; |
26 virtual content::NavigationController& | 26 virtual content::NavigationController& |
27 GetNavigationController() const OVERRIDE; | 27 GetNavigationController() const override; |
28 virtual const SessionID& GetSessionID() const OVERRIDE; | 28 virtual const SessionID& GetSessionID() const override; |
29 virtual bool ProcessExtensionKeyword( | 29 virtual bool ProcessExtensionKeyword( |
30 TemplateURL* template_url, | 30 TemplateURL* template_url, |
31 const AutocompleteMatch& match, | 31 const AutocompleteMatch& match, |
32 WindowOpenDisposition disposition) OVERRIDE; | 32 WindowOpenDisposition disposition) override; |
33 virtual void OnInputStateChanged() OVERRIDE; | 33 virtual void OnInputStateChanged() override; |
34 virtual void OnFocusChanged(OmniboxFocusState state, | 34 virtual void OnFocusChanged(OmniboxFocusState state, |
35 OmniboxFocusChangeReason reason) OVERRIDE; | 35 OmniboxFocusChangeReason reason) override; |
36 virtual void DoPrerender(const AutocompleteMatch& match) OVERRIDE; | 36 virtual void DoPrerender(const AutocompleteMatch& match) override; |
37 virtual void SetSuggestionToPrefetch( | 37 virtual void SetSuggestionToPrefetch( |
38 const InstantSuggestion& suggestion) OVERRIDE; | 38 const InstantSuggestion& suggestion) override; |
39 | 39 |
40 private: | 40 private: |
41 OmniboxEditController* controller_; | 41 OmniboxEditController* controller_; |
42 Profile* profile_; | 42 Profile* profile_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl); | 44 DISALLOW_COPY_AND_ASSIGN(OmniboxCurrentPageDelegateImpl); |
45 }; | 45 }; |
46 | 46 |
47 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ | 47 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_IMPL_H_ |
OLD | NEW |