| 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 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
| 8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 RegisterFunction<TabsExecuteScriptFunction>(); | 106 RegisterFunction<TabsExecuteScriptFunction>(); |
| 107 RegisterFunction<TabsInsertCSSFunction>(); | 107 RegisterFunction<TabsInsertCSSFunction>(); |
| 108 | 108 |
| 109 // Page Actions. | 109 // Page Actions. |
| 110 RegisterFunction<EnablePageActionFunction>(); | 110 RegisterFunction<EnablePageActionFunction>(); |
| 111 RegisterFunction<DisablePageActionFunction>(); | 111 RegisterFunction<DisablePageActionFunction>(); |
| 112 RegisterFunction<PageActionShowFunction>(); | 112 RegisterFunction<PageActionShowFunction>(); |
| 113 RegisterFunction<PageActionHideFunction>(); | 113 RegisterFunction<PageActionHideFunction>(); |
| 114 RegisterFunction<PageActionSetIconFunction>(); | 114 RegisterFunction<PageActionSetIconFunction>(); |
| 115 RegisterFunction<PageActionSetTitleFunction>(); | 115 RegisterFunction<PageActionSetTitleFunction>(); |
| 116 RegisterFunction<PageActionSetPopupFunction>(); |
| 116 | 117 |
| 117 // Browser Actions. | 118 // Browser Actions. |
| 118 RegisterFunction<BrowserActionSetIconFunction>(); | 119 RegisterFunction<BrowserActionSetIconFunction>(); |
| 119 RegisterFunction<BrowserActionSetTitleFunction>(); | 120 RegisterFunction<BrowserActionSetTitleFunction>(); |
| 120 RegisterFunction<BrowserActionSetBadgeTextFunction>(); | 121 RegisterFunction<BrowserActionSetBadgeTextFunction>(); |
| 121 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); | 122 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); |
| 122 | 123 |
| 123 // Bookmarks. | 124 // Bookmarks. |
| 124 RegisterFunction<GetBookmarksFunction>(); | 125 RegisterFunction<GetBookmarksFunction>(); |
| 125 RegisterFunction<GetBookmarkChildrenFunction>(); | 126 RegisterFunction<GetBookmarkChildrenFunction>(); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 } | 340 } |
| 340 } | 341 } |
| 341 | 342 |
| 342 Profile* ExtensionFunctionDispatcher::profile() { | 343 Profile* ExtensionFunctionDispatcher::profile() { |
| 343 return render_view_host_->process()->profile(); | 344 return render_view_host_->process()->profile(); |
| 344 } | 345 } |
| 345 | 346 |
| 346 gfx::NativeWindow ExtensionFunctionDispatcher::GetFrameNativeWindow() { | 347 gfx::NativeWindow ExtensionFunctionDispatcher::GetFrameNativeWindow() { |
| 347 return delegate_ ? delegate_->GetFrameNativeWindow() : NULL; | 348 return delegate_ ? delegate_->GetFrameNativeWindow() : NULL; |
| 348 } | 349 } |
| OLD | NEW |