OLD | NEW |
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 #include "chrome/browser/extensions/menu_manager.h" | 5 #include "chrome/browser/extensions/menu_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/common/chrome_notification_types.h" | 24 #include "chrome/common/chrome_notification_types.h" |
25 #include "chrome/common/extensions/extension.h" | 25 #include "chrome/common/extensions/extension.h" |
26 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
28 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
29 #include "content/public/common/context_menu_params.h" | 29 #include "content/public/common/context_menu_params.h" |
30 #include "ui/base/text/text_elider.h" | 30 #include "ui/base/text/text_elider.h" |
31 #include "ui/gfx/favicon_size.h" | 31 #include "ui/gfx/favicon_size.h" |
32 | 32 |
33 using content::WebContents; | 33 using content::WebContents; |
| 34 using extensions::ExtensionSystem; |
34 | 35 |
35 namespace extensions { | 36 namespace extensions { |
36 | 37 |
37 namespace { | 38 namespace { |
38 | 39 |
39 // Keys for serialization to and from Value to store in the preferences. | 40 // Keys for serialization to and from Value to store in the preferences. |
40 const char kContextMenusKey[] = "context_menus"; | 41 const char kContextMenusKey[] = "context_menus"; |
41 | 42 |
42 const char kCheckedKey[] = "checked"; | 43 const char kCheckedKey[] = "checked"; |
43 const char kContextsKey[] = "contexts"; | 44 const char kContextsKey[] = "contexts"; |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 if (uid < other.uid) | 817 if (uid < other.uid) |
817 return true; | 818 return true; |
818 if (uid == other.uid) | 819 if (uid == other.uid) |
819 return string_uid < other.string_uid; | 820 return string_uid < other.string_uid; |
820 } | 821 } |
821 } | 822 } |
822 return false; | 823 return false; |
823 } | 824 } |
824 | 825 |
825 } // namespace extensions | 826 } // namespace extensions |
OLD | NEW |