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

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

Issue 545068: Allow extensions to add, remove, or change their page action popup. (Closed)
Patch Set: Rebase, to run trybots with test data in place. Created 10 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_page_actions_module.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_page_actions_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698