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

Side by Side Diff: chrome/browser/extensions/extension_action.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 (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_EXTENSIONS_EXTENSION_ACTION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "chrome/common/extensions/api/extension_action/action_info.h" 15 #include "chrome/common/extensions/api/extension_action/action_info.h"
16 #include "extensions/common/constants.h" 16 #include "extensions/common/constants.h"
17 #include "third_party/skia/include/core/SkColor.h" 17 #include "third_party/skia/include/core/SkColor.h"
18 #include "ui/gfx/image/image.h" 18 #include "ui/gfx/image/image.h"
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace extensions { 22 namespace extensions {
23 class Extension; 23 class Extension;
24 class IconImage; 24 class IconImage;
25 } 25 }
26 26
27 namespace gfx { 27 namespace gfx {
28 class Canvas;
29 class Image; 28 class Image;
30 class ImageSkia; 29 class ImageSkia;
31 class Rect;
32 class Size;
33 } 30 }
34 31
35 // ExtensionAction encapsulates the state of a browser action or page action. 32 // ExtensionAction encapsulates the state of a browser action or page action.
36 // Instances can have both global and per-tab state. If a property does not have 33 // Instances can have both global and per-tab state. If a property does not have
37 // a per-tab value, the global value is used instead. 34 // a per-tab value, the global value is used instead.
38 class ExtensionAction { 35 class ExtensionAction {
39 public: 36 public:
40 // The action that the UI should take after the ExtensionAction is clicked. 37 // The action that the UI should take after the ExtensionAction is clicked.
41 enum ShowAction { 38 enum ShowAction {
42 ACTION_NONE, 39 ACTION_NONE,
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 }; 302 };
306 303
307 template<> 304 template<>
308 struct ExtensionAction::ValueTraits<int> { 305 struct ExtensionAction::ValueTraits<int> {
309 static int CreateEmpty() { 306 static int CreateEmpty() {
310 return -1; 307 return -1;
311 } 308 }
312 }; 309 };
313 310
314 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_H_ 311 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_action_icon_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698