OLD | NEW |
1 // Copyright (c) 2010 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 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/automation/automation_window_tracker.h" | 11 #include "chrome/browser/automation/automation_window_tracker.h" |
12 #include "chrome/browser/gtk/gtk_util.h" | 12 #include "chrome/browser/ui/gtk/gtk_util.h" |
13 #include "chrome/browser/gtk/view_id_util.h" | 13 #include "chrome/browser/ui/gtk/view_id_util.h" |
14 | 14 |
15 void TestingAutomationProvider::ActivateWindow(int handle) { | 15 void TestingAutomationProvider::ActivateWindow(int handle) { |
16 NOTIMPLEMENTED(); | 16 NOTIMPLEMENTED(); |
17 } | 17 } |
18 | 18 |
19 void TestingAutomationProvider::IsWindowMaximized(int handle, | 19 void TestingAutomationProvider::IsWindowMaximized(int handle, |
20 bool* is_maximized, | 20 bool* is_maximized, |
21 bool* success) { | 21 bool* success) { |
22 *success = false; | 22 *success = false; |
23 NOTIMPLEMENTED(); | 23 NOTIMPLEMENTED(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 *result = true; | 91 *result = true; |
92 } | 92 } |
93 } | 93 } |
94 | 94 |
95 void TestingAutomationProvider::GetWindowTitle(int handle, string16* text) { | 95 void TestingAutomationProvider::GetWindowTitle(int handle, string16* text) { |
96 gfx::NativeWindow window = window_tracker_->GetResource(handle); | 96 gfx::NativeWindow window = window_tracker_->GetResource(handle); |
97 const gchar* title = gtk_window_get_title(window); | 97 const gchar* title = gtk_window_get_title(window); |
98 text->assign(UTF8ToUTF16(title)); | 98 text->assign(UTF8ToUTF16(title)); |
99 } | 99 } |
OLD | NEW |