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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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/automation/automation_provider_observers.h" 5 #include "chrome/browser/automation/automation_provider_observers.h"
6 6
7 #include <deque> 7 #include <deque>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/json/json_writer.h" 11 #include "base/json/json_writer.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/app/chrome_dll_resource.h" 15 #include "chrome/app/chrome_command_ids.h"
16 #include "chrome/browser/automation/automation_provider.h" 16 #include "chrome/browser/automation/automation_provider.h"
17 #include "chrome/browser/automation/automation_provider_json.h" 17 #include "chrome/browser/automation/automation_provider_json.h"
18 #include "chrome/browser/bookmarks/bookmark_model.h" 18 #include "chrome/browser/bookmarks/bookmark_model.h"
19 #include "chrome/browser/browser.h" 19 #include "chrome/browser/browser.h"
20 #include "chrome/browser/browser_list.h" 20 #include "chrome/browser/browser_list.h"
21 #include "chrome/browser/dom_operation_notification_details.h" 21 #include "chrome/browser/dom_operation_notification_details.h"
22 #include "chrome/browser/download/download_item.h" 22 #include "chrome/browser/download/download_item.h"
23 #include "chrome/browser/download/save_package.h" 23 #include "chrome/browser/download/save_package.h"
24 #include "chrome/browser/extensions/extension_host.h" 24 #include "chrome/browser/extensions/extension_host.h"
25 #include "chrome/browser/extensions/extension_process_manager.h" 25 #include "chrome/browser/extensions/extension_process_manager.h"
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged)); 1363 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged));
1364 } 1364 }
1365 1365
1366 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() { 1366 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() {
1367 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) { 1367 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) {
1368 collection_->set_on_collection_changed_callback(NULL); 1368 collection_->set_on_collection_changed_callback(NULL);
1369 reply_.SendSuccess(NULL); 1369 reply_.SendSuccess(NULL);
1370 delete this; 1370 delete this;
1371 } 1371 }
1372 } 1372 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698