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

Side by Side Diff: chrome/browser/automation/automation_provider_mac.mm

Issue 593037: Remove the temporary scaffolding stubs. (Closed)
Patch Set: fixes Created 10 years, 10 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
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/bookmarks/bookmark_drag_data.h » ('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) 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 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include "base/gfx/point.h" 8 #include "base/gfx/point.h"
9 #include "base/gfx/rect.h" 9 #include "base/gfx/rect.h"
10 #include "chrome/test/automation/automation_messages.h" 10 #include "chrome/test/automation/automation_messages.h"
11 11
12 void AutomationProvider::SetWindowBounds(int handle, const gfx::Rect& bounds, 12 void AutomationProvider::SetWindowBounds(int handle, const gfx::Rect& bounds,
13 bool* success) { 13 bool* success) {
14 *success = false; 14 *success = false;
15 NSWindow* window = window_tracker_->GetResource(handle); 15 NSWindow* window = window_tracker_->GetResource(handle);
16 if (window) { 16 if (window) {
17 NSRect new_bounds = NSRectFromCGRect(bounds.ToCGRect()); 17 NSRect new_bounds = NSRectFromCGRect(bounds.ToCGRect());
18 18
19 // This is likely incorrect for a multiple-monitor setup; OK because this is 19 // This is likely incorrect for a multiple-monitor setup; OK because this
20 // used only for testing purposes. 20 // is used only for testing purposes.
21 new_bounds.origin.y = [[window screen] frame].size.height - 21 new_bounds.origin.y = [[window screen] frame].size.height -
22 new_bounds.origin.y - new_bounds.size.height; 22 new_bounds.origin.y - new_bounds.size.height;
23 23
24 [window setFrame:new_bounds display:NO]; 24 [window setFrame:new_bounds display:NO];
25 *success = true; 25 *success = true;
26 } 26 }
27 } 27 }
28 28
29 void AutomationProvider::SetWindowVisible(int handle, bool visible, 29 void AutomationProvider::SetWindowVisible(int handle, bool visible,
30 bool* result) { 30 bool* result) {
(...skipping 29 matching lines...) Expand all
60 } 60 }
61 61
62 void AutomationProvider::GetFocusedViewID(int handle, int* view_id) { 62 void AutomationProvider::GetFocusedViewID(int handle, int* view_id) {
63 NOTIMPLEMENTED(); 63 NOTIMPLEMENTED();
64 } 64 }
65 65
66 void AutomationProvider::PrintAsync(int tab_handle) { 66 void AutomationProvider::PrintAsync(int tab_handle) {
67 NOTIMPLEMENTED(); 67 NOTIMPLEMENTED();
68 } 68 }
69 69
70 void AutomationProvider::GetAutocompleteEditText(
71 int autocomplete_edit_handle, bool* success, std::wstring* text) {
72 *success = false;
73 NOTIMPLEMENTED();
74 }
75
76 void AutomationProvider::SetAutocompleteEditText(int autocomplete_edit_handle,
77 const std::wstring& text,
78 bool* success) {
79 *success = false;
80 NOTIMPLEMENTED();
81 }
82
83 void AutomationProvider::AutocompleteEditIsQueryInProgress(
84 int autocomplete_edit_handle, bool* success, bool* query_in_progress) {
85 *success = false;
86 NOTIMPLEMENTED();
87 }
88
89 void AutomationProvider::AutocompleteEditGetMatches(
90 int autocomplete_edit_handle, bool* success,
91 std::vector<AutocompleteMatchData>* matches) {
92 *success = false;
93 NOTIMPLEMENTED();
94 }
95
96 void AutomationProvider::OnMessageFromExternalHost(int handle,
97 const std::string& message,
98 const std::string& origin,
99 const std::string& target) {
100 NOTIMPLEMENTED();
101 }
102
103 void AutomationProvider::GetAutocompleteEditForBrowser(
104 int browser_handle, bool* success, int* autocomplete_edit_handle) {
105 *success = false;
106 NOTIMPLEMENTED();
107 }
108
70 void AutomationProvider::SetInitialFocus(const IPC::Message& message, 109 void AutomationProvider::SetInitialFocus(const IPC::Message& message,
71 int handle, bool reverse) { 110 int handle, bool reverse) {
72 NOTIMPLEMENTED(); 111 NOTIMPLEMENTED();
73 } 112 }
74 113
75 void AutomationProvider::GetBookmarkBarVisibility(int handle, bool* visible, 114 void AutomationProvider::GetBookmarkBarVisibility(int handle, bool* visible,
76 bool* animating) { 115 bool* animating) {
77 *visible = false; 116 *visible = false;
78 *animating = false; 117 *animating = false;
79 NOTIMPLEMENTED(); 118 NOTIMPLEMENTED();
(...skipping 12 matching lines...) Expand all
92 void AutomationProvider::TerminateSession(int handle, bool* success) { 131 void AutomationProvider::TerminateSession(int handle, bool* success) {
93 *success = false; 132 *success = false;
94 NOTIMPLEMENTED(); 133 NOTIMPLEMENTED();
95 } 134 }
96 135
97 void AutomationProvider::GetWindowBounds(int handle, gfx::Rect* bounds, 136 void AutomationProvider::GetWindowBounds(int handle, gfx::Rect* bounds,
98 bool* result) { 137 bool* result) {
99 *result = false; 138 *result = false;
100 NOTIMPLEMENTED(); 139 NOTIMPLEMENTED();
101 } 140 }
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/bookmarks/bookmark_drag_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698