| OLD | NEW |
| 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.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/message_box_flags.h" | 10 #include "app/message_box_flags.h" |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 *result = true; | 856 *result = true; |
| 857 } else { | 857 } else { |
| 858 *result = false; | 858 *result = false; |
| 859 } | 859 } |
| 860 } | 860 } |
| 861 | 861 |
| 862 void AutomationProvider::GetBrowserWindow(int index, int* handle) { | 862 void AutomationProvider::GetBrowserWindow(int index, int* handle) { |
| 863 *handle = 0; | 863 *handle = 0; |
| 864 if (index >= 0) { | 864 if (index >= 0) { |
| 865 BrowserList::const_iterator iter = BrowserList::begin(); | 865 BrowserList::const_iterator iter = BrowserList::begin(); |
| 866 for (; (iter != BrowserList::end()) && (index > 0); ++iter, --index); | 866 for (; (iter != BrowserList::end()) && (index > 0); ++iter, --index) {} |
| 867 if (iter != BrowserList::end()) { | 867 if (iter != BrowserList::end()) { |
| 868 *handle = browser_tracker_->Add(*iter); | 868 *handle = browser_tracker_->Add(*iter); |
| 869 } | 869 } |
| 870 } | 870 } |
| 871 } | 871 } |
| 872 | 872 |
| 873 void AutomationProvider::FindNormalBrowserWindow(int* handle) { | 873 void AutomationProvider::FindNormalBrowserWindow(int* handle) { |
| 874 *handle = 0; | 874 *handle = 0; |
| 875 Browser* browser = BrowserList::FindBrowserWithType(profile_, | 875 Browser* browser = BrowserList::FindBrowserWithType(profile_, |
| 876 Browser::TYPE_NORMAL, | 876 Browser::TYPE_NORMAL, |
| (...skipping 2550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3427 } | 3427 } |
| 3428 | 3428 |
| 3429 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { | 3429 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { |
| 3430 NOTIMPLEMENTED(); | 3430 NOTIMPLEMENTED(); |
| 3431 } | 3431 } |
| 3432 #endif // !defined(TOOLKIT_VIEWS) | 3432 #endif // !defined(TOOLKIT_VIEWS) |
| 3433 | 3433 |
| 3434 void AutomationProvider::ResetToDefaultTheme() { | 3434 void AutomationProvider::ResetToDefaultTheme() { |
| 3435 profile_->ClearTheme(); | 3435 profile_->ClearTheme(); |
| 3436 } | 3436 } |
| OLD | NEW |