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

Side by Side Diff: chrome/browser/ui/toolbar/mock_component_toolbar_actions_factory.h

Issue 1241063003: Support Component Actions in the toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch GetComponentActionId to unix_hacker_style. Created 5 years, 4 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
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_
7
8 #include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h"
9 #include "chrome/browser/ui/toolbar/toolbar_actions_model.h"
10
11 class Browser;
12
13 // Mock class used to substitute ComponentToolbarActionsFactory in tests.
14 class MockComponentToolbarActionsFactory
15 : public ComponentToolbarActionsFactory {
16 public:
17 explicit MockComponentToolbarActionsFactory(Browser* browser);
18 ~MockComponentToolbarActionsFactory() override;
19
20 // ComponentToolbarActionsFactory:
21 ScopedVector<ToolbarActionViewController> GetComponentToolbarActions(
22 Browser* browser) override;
23
24 const std::vector<std::string>& action_ids() const { return action_ids_; }
25
26 private:
27 std::vector<std::string> action_ids_;
28
29 DISALLOW_COPY_AND_ASSIGN(MockComponentToolbarActionsFactory);
30 };
31
32 #endif // CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/media_router_action.cc ('k') | chrome/browser/ui/toolbar/mock_component_toolbar_actions_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698