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

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

Issue 113229: Add new tab startup test to the linux & mac build. (Closed)
Patch Set: make the test actually run Created 11 years, 7 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 | « base/test_file_util_posix.cc ('k') | chrome/chrome.gyp » ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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/automation/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include "app/message_box_flags.h" 7 #include "app/message_box_flags.h"
8 #include "base/file_version_info.h" 8 #include "base/file_version_info.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 profile_(profile), 858 profile_(profile),
859 reply_message_(NULL) { 859 reply_message_(NULL) {
860 browser_tracker_.reset(new AutomationBrowserTracker(this)); 860 browser_tracker_.reset(new AutomationBrowserTracker(this));
861 tab_tracker_.reset(new AutomationTabTracker(this)); 861 tab_tracker_.reset(new AutomationTabTracker(this));
862 window_tracker_.reset(new AutomationWindowTracker(this)); 862 window_tracker_.reset(new AutomationWindowTracker(this));
863 autocomplete_edit_tracker_.reset( 863 autocomplete_edit_tracker_.reset(
864 new AutomationAutocompleteEditTracker(this)); 864 new AutomationAutocompleteEditTracker(this));
865 #if defined(OS_WIN) 865 #if defined(OS_WIN)
866 // TODO(port): Enable as the trackers get ported. 866 // TODO(port): Enable as the trackers get ported.
867 cwindow_tracker_.reset(new AutomationConstrainedWindowTracker(this)); 867 cwindow_tracker_.reset(new AutomationConstrainedWindowTracker(this));
868 #endif // defined(OS_WIN)
Evan Martin 2009/05/11 23:25:40 Put a NOTIMPLEMENTED() in here?
868 new_tab_ui_load_observer_.reset(new NewTabUILoadObserver(this)); 869 new_tab_ui_load_observer_.reset(new NewTabUILoadObserver(this));
869 #endif // defined(OS_WIN)
870 dom_operation_observer_.reset(new DomOperationNotificationObserver(this)); 870 dom_operation_observer_.reset(new DomOperationNotificationObserver(this));
871 dom_inspector_observer_.reset(new DomInspectorNotificationObserver(this)); 871 dom_inspector_observer_.reset(new DomInspectorNotificationObserver(this));
872 } 872 }
873 873
874 AutomationProvider::~AutomationProvider() { 874 AutomationProvider::~AutomationProvider() {
875 // Make sure that any outstanding NotificationObservers also get destroyed. 875 // Make sure that any outstanding NotificationObservers also get destroyed.
876 ObserverList<NotificationObserver>::Iterator it(notification_observer_list_); 876 ObserverList<NotificationObserver>::Iterator it(notification_observer_list_);
877 NotificationObserver* observer; 877 NotificationObserver* observer;
878 while ((observer = it.GetNext()) != NULL) 878 while ((observer = it.GetNext()) != NULL)
879 delete observer; 879 delete observer;
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after
2954 DLOG(WARNING) << "SetParent failed. Error 0x%x" << GetLastError(); 2954 DLOG(WARNING) << "SetParent failed. Error 0x%x" << GetLastError();
2955 } 2955 }
2956 } 2956 }
2957 } 2957 }
2958 #endif 2958 #endif
2959 2959
2960 void AutomationProvider::GetWindowTitle(int handle, string16* text) { 2960 void AutomationProvider::GetWindowTitle(int handle, string16* text) {
2961 gfx::NativeWindow window = window_tracker_->GetResource(handle); 2961 gfx::NativeWindow window = window_tracker_->GetResource(handle);
2962 text->assign(platform_util::GetWindowTitle(window)); 2962 text->assign(platform_util::GetWindowTitle(window));
2963 } 2963 }
OLDNEW
« no previous file with comments | « base/test_file_util_posix.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698