| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/extensions/api/extension_action/script_badge_api.h" | |
| 6 | |
| 7 #include "chrome/browser/extensions/api/extension_action/script_badge_api_factor
y.h" | |
| 8 #include "chrome/browser/extensions/location_bar_controller.h" | |
| 9 #include "chrome/browser/extensions/tab_helper.h" | |
| 10 #include "chrome/common/extensions/api/extension_action/script_badge_handler.h" | |
| 11 #include "chrome/common/extensions/extension_manifest_constants.h" | |
| 12 #include "chrome/common/extensions/manifest_handler.h" | |
| 13 #include "content/public/browser/web_contents.h" | |
| 14 | |
| 15 namespace extensions { | |
| 16 | |
| 17 ScriptBadgeAPI::ScriptBadgeAPI(Profile* profile) { | |
| 18 ManifestHandler::Register(extension_manifest_keys::kScriptBadge, | |
| 19 new ScriptBadgeHandler); | |
| 20 } | |
| 21 | |
| 22 ScriptBadgeAPI::~ScriptBadgeAPI() { | |
| 23 } | |
| 24 | |
| 25 void ScriptBadgeAPI::Shutdown() { | |
| 26 } | |
| 27 | |
| 28 ScriptBadgeGetAttentionFunction::~ScriptBadgeGetAttentionFunction() {} | |
| 29 | |
| 30 bool ScriptBadgeGetAttentionFunction::RunExtensionAction() { | |
| 31 tab_helper().location_bar_controller()->GetAttentionFor(extension_id()); | |
| 32 return true; | |
| 33 } | |
| 34 | |
| 35 } // namespace extensions | |
| OLD | NEW |