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

Side by Side Diff: chrome/test/automation/browser_proxy.h

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // owns the returned WindowProxy. 88 // owns the returned WindowProxy.
89 // On failure, returns NULL. 89 // On failure, returns NULL.
90 scoped_refptr<WindowProxy> GetWindow() const; 90 scoped_refptr<WindowProxy> GetWindow() const;
91 91
92 // Returns an AutocompleteEdit for this browser's window. It can be used to 92 // Returns an AutocompleteEdit for this browser's window. It can be used to
93 // manipulate the omnibox. The caller owns the returned pointer. 93 // manipulate the omnibox. The caller owns the returned pointer.
94 // On failure, returns NULL. 94 // On failure, returns NULL.
95 scoped_refptr<AutocompleteEditProxy> GetAutocompleteEdit(); 95 scoped_refptr<AutocompleteEditProxy> GetAutocompleteEdit();
96 96
97 // Apply the accelerator with given id (IDC_BACK, IDC_NEWTAB ...) 97 // Apply the accelerator with given id (IDC_BACK, IDC_NEWTAB ...)
98 // The list can be found at chrome/app/chrome_dll_resource.h 98 // The list can be found at chrome/app/chrome_command_ids.h
99 // Returns true if the call was successful. 99 // Returns true if the call was successful.
100 // 100 //
101 // The alternate way to test the accelerators is to use the Windows messaging 101 // The alternate way to test the accelerators is to use the Windows messaging
102 // system to send the actual keyboard events (ui_controls.h) A precondition 102 // system to send the actual keyboard events (ui_controls.h) A precondition
103 // to using this system is that the target window should have the keyboard 103 // to using this system is that the target window should have the keyboard
104 // focus. This leads to a flaky test behavior in circumstances when the 104 // focus. This leads to a flaky test behavior in circumstances when the
105 // desktop screen is locked or the test is being executed over a remote 105 // desktop screen is locked or the test is being executed over a remote
106 // desktop. 106 // desktop.
107 bool ApplyAccelerator(int id) WARN_UNUSED_RESULT; 107 bool ApplyAccelerator(int id) WARN_UNUSED_RESULT;
108 108
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 std::vector<float>* stop_times); 240 std::vector<float>* stop_times);
241 241
242 242
243 protected: 243 protected:
244 virtual ~BrowserProxy() {} 244 virtual ~BrowserProxy() {}
245 private: 245 private:
246 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); 246 DISALLOW_COPY_AND_ASSIGN(BrowserProxy);
247 }; 247 };
248 248
249 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ 249 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698