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

Side by Side Diff: ash/link_handler_model.h

Issue 1760773004: Add "Open with <ARC-app-name>" items to the context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comment Created 4 years, 8 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/link_handler_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef ASH_LINK_HANDLER_MODEL_H_
6 #define ASH_LINK_HANDLER_MODEL_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "ash/ash_export.h"
12 #include "ui/gfx/image/image.h"
13
14 class GURL;
15
16 namespace ash {
17
18 struct ASH_EXPORT LinkHandlerInfo {
19 std::string name;
20 gfx::Image icon;
21 uint32_t id;
22 };
23
24 // A model LinkHandlerModelFactory returns.
25 class ASH_EXPORT LinkHandlerModel {
26 public:
27 class Observer {
28 public:
29 virtual ~Observer();
30 virtual void ModelChanged(const std::vector<LinkHandlerInfo>& handlers) = 0;
31 };
32
33 virtual ~LinkHandlerModel();
34 virtual void AddObserver(Observer* observer) = 0;
35
36 // Opens the |url| with a handler specified by the |handler_id|.
37 virtual void OpenLinkWithHandler(const GURL& url, uint32_t handler_id) = 0;
38 };
39
40 } // namespace ash
41
42 #endif // ASH_LINK_HANDLER_MODEL_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/link_handler_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698