| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tabs/tab_window_controller.h" |
| 17 #include "chrome/browser/ui/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) { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 // If we don't yet have a title, use "Untitled". | 148 // If we don't yet have a title, use "Untitled". |
| 149 if (![title length]) { | 149 if (![title length]) { |
| 150 text->assign(l10n_util::GetStringUTF16( | 150 text->assign(l10n_util::GetStringUTF16( |
| 151 IDS_BROWSER_WINDOW_MAC_TAB_UNTITLED)); | 151 IDS_BROWSER_WINDOW_MAC_TAB_UNTITLED)); |
| 152 return; | 152 return; |
| 153 } | 153 } |
| 154 | 154 |
| 155 text->assign(base::SysNSStringToUTF16(title)); | 155 text->assign(base::SysNSStringToUTF16(title)); |
| 156 } | 156 } |
| OLD | NEW |