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

Side by Side Diff: chrome/test/automation/window_proxy.cc

Issue 354010: Handle GTK enter and leave notification events and pass them to WebKit as ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/automation/window_proxy.h ('k') | chrome/test/data/mouseleave.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/test/automation/window_proxy.h" 5 #include "chrome/test/automation/window_proxy.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "chrome/test/automation/automation_constants.h" 12 #include "chrome/test/automation/automation_constants.h"
13 #include "chrome/test/automation/automation_messages.h" 13 #include "chrome/test/automation/automation_messages.h"
14 #include "chrome/test/automation/automation_proxy.h" 14 #include "chrome/test/automation/automation_proxy.h"
15 #include "chrome/test/automation/browser_proxy.h" 15 #include "chrome/test/automation/browser_proxy.h"
16 #include "chrome/test/automation/tab_proxy.h" 16 #include "chrome/test/automation/tab_proxy.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 bool WindowProxy::SimulateOSClick(const gfx::Point& click, int flags) { 19 bool WindowProxy::SimulateOSClick(const gfx::Point& click, int flags) {
20 if (!is_valid()) return false; 20 if (!is_valid()) return false;
21 21
22 return sender_->Send( 22 return sender_->Send(
23 new AutomationMsg_WindowClick(0, handle_, click, flags)); 23 new AutomationMsg_WindowClick(0, handle_, click, flags));
24 } 24 }
25 25
26 bool WindowProxy::SimulateOSMouseMove(const gfx::Point& location) {
27 if (!is_valid()) return false;
28
29 return sender_->Send(
30 new AutomationMsg_WindowMouseMove(0, handle_, location));
31 }
32
26 bool WindowProxy::GetWindowTitle(string16* text) { 33 bool WindowProxy::GetWindowTitle(string16* text) {
27 if (!is_valid()) return false; 34 if (!is_valid()) return false;
28 35
29 if (!text) { 36 if (!text) {
30 NOTREACHED(); 37 NOTREACHED();
31 return false; 38 return false;
32 } 39 }
33 40
34 return sender_->Send(new AutomationMsg_WindowTitle(0, handle_, text)); 41 return sender_->Send(new AutomationMsg_WindowTitle(0, handle_, text));
35 } 42 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool WindowProxy::IsMaximized(bool* maximized) { 163 bool WindowProxy::IsMaximized(bool* maximized) {
157 if (!is_valid()) 164 if (!is_valid())
158 return false; 165 return false;
159 166
160 bool result = false; 167 bool result = false;
161 168
162 sender_->Send(new AutomationMsg_IsWindowMaximized(0, handle_, maximized, 169 sender_->Send(new AutomationMsg_IsWindowMaximized(0, handle_, maximized,
163 &result)); 170 &result));
164 return result; 171 return result;
165 } 172 }
OLDNEW
« no previous file with comments | « chrome/test/automation/window_proxy.h ('k') | chrome/test/data/mouseleave.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698