| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 #include "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 void AutomationProvider::TerminateSession(int handle, bool* success) { | 221 void AutomationProvider::TerminateSession(int handle, bool* success) { |
| 222 *success = false; | 222 *success = false; |
| 223 NOTIMPLEMENTED(); | 223 NOTIMPLEMENTED(); |
| 224 } | 224 } |
| 225 | 225 |
| 226 void AutomationProvider::GetWindowBounds(int handle, gfx::Rect* bounds, | 226 void AutomationProvider::GetWindowBounds(int handle, gfx::Rect* bounds, |
| 227 bool* result) { | 227 bool* result) { |
| 228 *result = false; | 228 *result = false; |
| 229 NOTIMPLEMENTED(); | 229 NOTIMPLEMENTED(); |
| 230 } | 230 } |
| 231 |
| 232 void AutomationProvider::GetWindowTitle(int handle, string16* text) { |
| 233 gfx::NativeWindow window = window_tracker_->GetResource(handle); |
| 234 const gchar* title = gtk_window_get_title(window); |
| 235 text->assign(UTF8ToUTF16(title)); |
| 236 } |
| 237 |
| OLD | NEW |