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

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

Issue 3191015: GTTF: next batch of automation separation. (Closed)
Patch Set: tryservers Created 10 years, 4 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
OLDNEW
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/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/automation/ui_controls.h" 10 #include "chrome/browser/automation/ui_controls.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 y = point.y(); 64 y = point.y();
65 } else { 65 } else {
66 gtk_widget_translate_coordinates(widget, GTK_WIDGET(window), 66 gtk_widget_translate_coordinates(widget, GTK_WIDGET(window),
67 0, 0, &x, &y); 67 0, 0, &x, &y);
68 } 68 }
69 bounds->set_origin(gfx::Point(x, y)); 69 bounds->set_origin(gfx::Point(x, y));
70 } 70 }
71 } 71 }
72 #endif 72 #endif
73 73
74 void AutomationProvider::ActivateWindow(int handle) {
75 NOTIMPLEMENTED();
76 }
77
78 void AutomationProvider::IsWindowMaximized(int handle, bool* is_maximized,
79 bool* success) {
80 *success = false;
81 NOTIMPLEMENTED();
82 }
83
84 void AutomationProvider::PrintAsync(int tab_handle) { 74 void AutomationProvider::PrintAsync(int tab_handle) {
85 NOTIMPLEMENTED(); 75 NOTIMPLEMENTED();
86 } 76 }
87 77
88 // This task sends a WindowDragResponse message with the appropriate 78 // This task sends a WindowDragResponse message with the appropriate
89 // routing ID to the automation proxy. This is implemented as a task so that 79 // routing ID to the automation proxy. This is implemented as a task so that
90 // we know that the mouse events (and any tasks that they spawn on the message 80 // we know that the mouse events (and any tasks that they spawn on the message
91 // loop) have been processed by the time this is sent. 81 // loop) have been processed by the time this is sent.
92 class WindowDragResponseTask : public Task { 82 class WindowDragResponseTask : public Task {
93 public: 83 public:
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool* result) { 203 bool* result) {
214 *result = false; 204 *result = false;
215 NOTIMPLEMENTED(); 205 NOTIMPLEMENTED();
216 } 206 }
217 207
218 void AutomationProvider::GetWindowTitle(int handle, string16* text) { 208 void AutomationProvider::GetWindowTitle(int handle, string16* text) {
219 gfx::NativeWindow window = window_tracker_->GetResource(handle); 209 gfx::NativeWindow window = window_tracker_->GetResource(handle);
220 const gchar* title = gtk_window_get_title(window); 210 const gchar* title = gtk_window_get_title(window);
221 text->assign(UTF8ToUTF16(title)); 211 text->assign(UTF8ToUTF16(title));
222 } 212 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/automation_provider_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698