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

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

Issue 222543004: Makes chrome://omnibox use mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get working with mojo changes Created 6 years, 7 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 | Annotate | Revision Log
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_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/public/browser/web_ui_controller.h" 9 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
10 10
11 // The UI for chrome://omnibox/ 11 // The UI for chrome://omnibox/
12 class OmniboxUI : public content::WebUIController { 12 class OmniboxUI : public MojoWebUIController {
13 public: 13 public:
14 explicit OmniboxUI(content::WebUI* contents); 14 explicit OmniboxUI(content::WebUI* contents);
15 virtual ~OmniboxUI(); 15 virtual ~OmniboxUI();
16 16
17 private: 17 private:
18 // MojoWebUIController overrides:
19 virtual scoped_ptr<MojoWebUIHandler> CreateUIHandler(
20 mojo::ScopedMessagePipeHandle handle_to_page) OVERRIDE;
21
18 DISALLOW_COPY_AND_ASSIGN(OmniboxUI); 22 DISALLOW_COPY_AND_ASSIGN(OmniboxUI);
19 }; 23 };
20 24
21 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_ 25 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox.mojom ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698