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

Side by Side Diff: ash/system/palette/palette_tool_manager.h

Issue 2926703002: Remove VectorIconId references from the codebase (Closed)
Patch Set: Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 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 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 ASH_SYSTEM_PALETTE_PALETTE_TOOL_MANAGER_H_ 5 #ifndef ASH_SYSTEM_PALETTE_PALETTE_TOOL_MANAGER_H_
6 #define ASH_SYSTEM_PALETTE_PALETTE_TOOL_MANAGER_H_ 6 #define ASH_SYSTEM_PALETTE_PALETTE_TOOL_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Deactivates the given tool. 76 // Deactivates the given tool.
77 void DeactivateTool(PaletteToolId tool_id); 77 void DeactivateTool(PaletteToolId tool_id);
78 78
79 // Returns true if the given tool is active. 79 // Returns true if the given tool is active.
80 bool IsToolActive(PaletteToolId tool_id); 80 bool IsToolActive(PaletteToolId tool_id);
81 81
82 // Returns the active tool for the given group. 82 // Returns the active tool for the given group.
83 PaletteToolId GetActiveTool(PaletteGroup group); 83 PaletteToolId GetActiveTool(PaletteGroup group);
84 84
85 // Fetch the active tray icon for the given tool. Returns 85 // Fetch the active tray icon for the given tool. Returns gfx::kNoneIcon if
Evan Stade 2017/06/06 21:28:57 nit: returns an empty icon (not necessarily kNoneI
tdanderson 2017/06/07 15:55:55 Done.
86 // gfx::VectorIconId::VECTOR_ICON_NONE if not available. 86 // not available.
87 const gfx::VectorIcon& GetActiveTrayIcon(PaletteToolId tool_id) const; 87 const gfx::VectorIcon& GetActiveTrayIcon(PaletteToolId tool_id) const;
88 88
89 // Create views for all of the registered tools. 89 // Create views for all of the registered tools.
90 std::vector<PaletteToolView> CreateViews(); 90 std::vector<PaletteToolView> CreateViews();
91 91
92 // Called when the views returned by CreateViews have been destroyed. This 92 // Called when the views returned by CreateViews have been destroyed. This
93 // should clear any (now) stale references. 93 // should clear any (now) stale references.
94 void NotifyViewsDestroyed(); 94 void NotifyViewsDestroyed();
95 95
96 // Helper method to disable any active tool in the given |group|. 96 // Helper method to disable any active tool in the given |group|.
(...skipping 19 matching lines...) Expand all
116 116
117 // Owned list of all tools. 117 // Owned list of all tools.
118 std::vector<std::unique_ptr<PaletteTool>> tools_; 118 std::vector<std::unique_ptr<PaletteTool>> tools_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(PaletteToolManager); 120 DISALLOW_COPY_AND_ASSIGN(PaletteToolManager);
121 }; 121 };
122 122
123 } // namespace ash 123 } // namespace ash
124 124
125 #endif // ASH_SYSTEM_PALETTE_PALETTE_TOOL_MANAGER_H_ 125 #endif // ASH_SYSTEM_PALETTE_PALETTE_TOOL_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | components/omnibox/browser/omnibox_view.h » ('j') | components/toolbar/toolbar_model_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698