OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COMMON_PAGE_ACTION_H_ | 5 #ifndef CHROME_COMMON_PAGE_ACTION_H_ |
6 #define CHROME_COMMON_PAGE_ACTION_H_ | 6 #define CHROME_COMMON_PAGE_ACTION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "googleurl/src/gurl.h" | |
13 | 12 |
14 class PageAction { | 13 class PageAction { |
15 public: | 14 public: |
16 PageAction(); | 15 PageAction(); |
17 virtual ~PageAction(); | 16 virtual ~PageAction(); |
18 | 17 |
19 typedef enum { | 18 typedef enum { |
20 PERMANENT = 0, | 19 PERMANENT = 0, |
21 TAB = 1, | 20 TAB = 1, |
22 } PageActionType; | 21 } PageActionType; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // The icon that represents the PageIcon. | 61 // The icon that represents the PageIcon. |
63 FilePath icon_path_; | 62 FilePath icon_path_; |
64 | 63 |
65 // The tooltip to show when the mouse hovers over the icon of the page action. | 64 // The tooltip to show when the mouse hovers over the icon of the page action. |
66 std::string tooltip_; | 65 std::string tooltip_; |
67 }; | 66 }; |
68 | 67 |
69 typedef std::map<std::string, PageAction*> PageActionMap; | 68 typedef std::map<std::string, PageAction*> PageActionMap; |
70 | 69 |
71 #endif // CHROME_COMMON_PAGE_ACTION_H_ | 70 #endif // CHROME_COMMON_PAGE_ACTION_H_ |
OLD | NEW |