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

Side by Side Diff: chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (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 CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 // AutocompleteController to OnResultChanged() and passes those results to 23 // AutocompleteController to OnResultChanged() and passes those results to
24 // the OmniboxPage. 24 // the OmniboxPage.
25 class OmniboxUIHandler : public AutocompleteControllerDelegate, 25 class OmniboxUIHandler : public AutocompleteControllerDelegate,
26 public mojo::InterfaceImpl<OmniboxUIHandlerMojo>, 26 public mojo::InterfaceImpl<OmniboxUIHandlerMojo>,
27 public MojoWebUIHandler { 27 public MojoWebUIHandler {
28 public: 28 public:
29 explicit OmniboxUIHandler(Profile* profile); 29 explicit OmniboxUIHandler(Profile* profile);
30 virtual ~OmniboxUIHandler(); 30 virtual ~OmniboxUIHandler();
31 31
32 // AutocompleteControllerDelegate overrides: 32 // AutocompleteControllerDelegate overrides:
33 virtual void OnResultChanged(bool default_match_changed) OVERRIDE; 33 virtual void OnResultChanged(bool default_match_changed) override;
34 34
35 // ErrorHandler overrides: 35 // ErrorHandler overrides:
36 virtual void OnConnectionError() OVERRIDE { 36 virtual void OnConnectionError() override {
37 // TODO(darin): How should we handle connection error? 37 // TODO(darin): How should we handle connection error?
38 } 38 }
39 39
40 // OmniboxUIHandlerMojo overrides: 40 // OmniboxUIHandlerMojo overrides:
41 virtual void StartOmniboxQuery(const mojo::String& input_string, 41 virtual void StartOmniboxQuery(const mojo::String& input_string,
42 int32_t cursor_position, 42 int32_t cursor_position,
43 bool prevent_inline_autocomplete, 43 bool prevent_inline_autocomplete,
44 bool prefer_keyword, 44 bool prefer_keyword,
45 int32_t page_classification) OVERRIDE; 45 int32_t page_classification) override;
46 46
47 private: 47 private:
48 // Looks up whether the hostname is a typed host (i.e., has received 48 // Looks up whether the hostname is a typed host (i.e., has received
49 // typed visits). Return true if the lookup succeeded; if so, the 49 // typed visits). Return true if the lookup succeeded; if so, the
50 // value of |is_typed_host| is set appropriately. 50 // value of |is_typed_host| is set appropriately.
51 bool LookupIsTypedHost(const base::string16& host, bool* is_typed_host) const; 51 bool LookupIsTypedHost(const base::string16& host, bool* is_typed_host) const;
52 52
53 // Re-initializes the AutocompleteController in preparation for the 53 // Re-initializes the AutocompleteController in preparation for the
54 // next query. 54 // next query.
55 void ResetController(); 55 void ResetController();
(...skipping 10 matching lines...) Expand all
66 // The input used when starting the AutocompleteController. 66 // The input used when starting the AutocompleteController.
67 AutocompleteInput input_; 67 AutocompleteInput input_;
68 68
69 // The Profile* handed to us in our constructor. 69 // The Profile* handed to us in our constructor.
70 Profile* profile_; 70 Profile* profile_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler); 72 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler);
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ 75 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_ui.h ('k') | chrome/browser/ui/webui/options/autofill_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698