| 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/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/l10n_util_mac.h" | 10 #include "app/l10n_util_mac.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
| 13 #include "chrome/browser/automation/automation_browser_tracker.h" | 13 #include "chrome/browser/automation/automation_browser_tracker.h" |
| 14 #include "chrome/browser/automation/automation_window_tracker.h" | 14 #include "chrome/browser/automation/automation_window_tracker.h" |
| 15 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 15 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 16 #include "chrome/browser/ui/cocoa/tab_window_controller.h" | 16 #include "chrome/browser/ui/cocoa/tab_window_controller.h" |
| 17 #include "chrome/browser/view_ids.h" | 17 #include "chrome/browser/ui/view_ids.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 | 19 |
| 20 void TestingAutomationProvider::ActivateWindow(int handle) { | 20 void TestingAutomationProvider::ActivateWindow(int handle) { |
| 21 NOTIMPLEMENTED(); | 21 NOTIMPLEMENTED(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 void TestingAutomationProvider::IsWindowMaximized(int handle, | 24 void TestingAutomationProvider::IsWindowMaximized(int handle, |
| 25 bool* is_maximized, | 25 bool* is_maximized, |
| 26 bool* success) { | 26 bool* success) { |
| 27 *success = false; | 27 *success = false; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 // If we don't yet have a title, use "Untitled". | 132 // If we don't yet have a title, use "Untitled". |
| 133 if (![title length]) { | 133 if (![title length]) { |
| 134 text->assign(l10n_util::GetStringUTF16( | 134 text->assign(l10n_util::GetStringUTF16( |
| 135 IDS_BROWSER_WINDOW_MAC_TAB_UNTITLED)); | 135 IDS_BROWSER_WINDOW_MAC_TAB_UNTITLED)); |
| 136 return; | 136 return; |
| 137 } | 137 } |
| 138 | 138 |
| 139 text->assign(base::SysNSStringToUTF16(title)); | 139 text->assign(base::SysNSStringToUTF16(title)); |
| 140 } | 140 } |
| OLD | NEW |