Roll src/third_party/skia d32087a:1052f51
[chromium-blink-merge.git] / mandoline / ui / omnibox / omnibox_application.h
blobc14dd82afd4112a0c800ea85615099fce5828fbe
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MANDOLINE_UI_OMNIBOX_OMNIBOX_APPLICATION_H_
6 #define MANDOLINE_UI_OMNIBOX_OMNIBOX_APPLICATION_H_
8 #include "base/macros.h"
9 #include "mandoline/ui/desktop_ui/public/interfaces/omnibox.mojom.h"
10 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/interface_factory.h"
13 namespace mojo {
14 class ApplicationImpl;
17 namespace mandoline {
19 class OmniboxApplication : public mojo::ApplicationDelegate,
20 public mojo::InterfaceFactory<Omnibox> {
21 public:
22 OmniboxApplication();
23 ~OmniboxApplication() override;
25 private:
26 // Overridden from mojo::ApplicationDelegate:
27 void Initialize(mojo::ApplicationImpl* app) override;
28 bool ConfigureIncomingConnection(
29 mojo::ApplicationConnection* connection) override;
31 // Overridden from mojo::InterfaceFactory<Omnibox>:
32 void Create(mojo::ApplicationConnection* connection,
33 mojo::InterfaceRequest<Omnibox> request) override;
35 mojo::ApplicationImpl* app_;
37 DISALLOW_COPY_AND_ASSIGN(OmniboxApplication);
40 } // namespace mandoline
42 #endif // MANDOLINE_UI_OMNIBOX_OMNIBOX_APPLICATION_H_