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

Side by Side Diff: chrome/browser/extensions/extension_page_actions_module.cc

Issue 6598086: Update more includes that were pointing to the old locations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/extension_page_actions_module.h" 5 #include "chrome/browser/extensions/extension_page_actions_module.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "chrome/browser/browser_list.h" 10 #include "chrome/browser/browser_list.h"
11 #include "chrome/browser/extensions/extension_page_actions_module_constants.h" 11 #include "chrome/browser/extensions/extension_page_actions_module_constants.h"
12 #include "chrome/browser/extensions/extension_tabs_module.h" 12 #include "chrome/browser/extensions/extension_tabs_module.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/tab_contents/navigation_entry.h"
16 #include "chrome/browser/tab_contents/tab_contents.h"
17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
18 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
19 #include "chrome/common/extensions/extension_action.h" 17 #include "chrome/common/extensions/extension_action.h"
20 #include "chrome/common/extensions/extension_error_utils.h" 18 #include "chrome/common/extensions/extension_error_utils.h"
21 #include "chrome/common/render_messages.h" 19 #include "chrome/common/render_messages.h"
20 #include "content/browser/tab_contents/navigation_entry.h"
21 #include "content/browser/tab_contents/tab_contents.h"
22 22
23 namespace keys = extension_page_actions_module_constants; 23 namespace keys = extension_page_actions_module_constants;
24 24
25 namespace { 25 namespace {
26 // Errors. 26 // Errors.
27 const char kNoTabError[] = "No tab with id: *."; 27 const char kNoTabError[] = "No tab with id: *.";
28 const char kNoPageActionError[] = 28 const char kNoPageActionError[] =
29 "This extension has no page action specified."; 29 "This extension has no page action specified.";
30 const char kUrlNotActiveError[] = "This url is no longer active: *."; 30 const char kUrlNotActiveError[] = "This url is no longer active: *.";
31 const char kIconIndexOutOfBounds[] = "Page action icon index out of bounds."; 31 const char kIconIndexOutOfBounds[] = "Page action icon index out of bounds.";
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 if (!InitCommon(tab_id)) 282 if (!InitCommon(tab_id))
283 return false; 283 return false;
284 284
285 std::string text; 285 std::string text;
286 EXTENSION_FUNCTION_VALIDATE(args->GetString("text", &text)); 286 EXTENSION_FUNCTION_VALIDATE(args->GetString("text", &text));
287 287
288 page_action_->SetBadgeText(tab_id, text); 288 page_action_->SetBadgeText(tab_id, text);
289 contents_->PageActionStateChanged(); 289 contents_->PageActionStateChanged();
290 return true; 290 return true;
291 } 291 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.cc ('k') | chrome/browser/extensions/extension_webnavigation_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698