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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 6630001: Allow webdriver users to choose between sending the key events when... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 DictionaryValue* args, 765 DictionaryValue* args,
766 IPC::Message* reply_message); 766 IPC::Message* reply_message);
767 767
768 // Sends a web keyboard event to the active tab. This should not trigger any 768 // Sends a web keyboard event to the active tab. This should not trigger any
769 // browser hotkeys. 769 // browser hotkeys.
770 // Uses the JSON interface for input/output. 770 // Uses the JSON interface for input/output.
771 void SendKeyEventToActiveTab(Browser* browser, 771 void SendKeyEventToActiveTab(Browser* browser,
772 DictionaryValue* args, 772 DictionaryValue* args,
773 IPC::Message* reply_message); 773 IPC::Message* reply_message);
774 774
775 // Sends a web keyboard event to the active browser window.
776 // Uses the JSON interface for input/output.
777 void SendKeyEventToActiveBrowserWindow(Browser* browser,
778 DictionaryValue* args,
779 IPC::Message* reply_message);
780
781 // Populates the fields of the event parameters with what is found
782 // on the args one.
783 // Common part of the SendKeyEventToActiveTab and
784 // SendKeyEventToActiveBrowserWindow methods.
785 bool BuildNativeWebKeyEventFromArgs(DictionaryValue* args,
786 IPC::Message* reply_message,
787 NativeWebKeyboardEvent* event);
788
789
775 // Determines whether each relevant section of the NTP is in thumbnail mode. 790 // Determines whether each relevant section of the NTP is in thumbnail mode.
776 void GetNTPThumbnailMode(Browser* browser, 791 void GetNTPThumbnailMode(Browser* browser,
777 DictionaryValue* args, 792 DictionaryValue* args,
778 IPC::Message* reply_message); 793 IPC::Message* reply_message);
779 794
780 // Puts or removes the specified section of the NTP into/from thumbnail mode. 795 // Puts or removes the specified section of the NTP into/from thumbnail mode.
781 // If the section is put into thumbnail mode, all other relevant sections are 796 // If the section is put into thumbnail mode, all other relevant sections are
782 // removed from thumbnail mode. 797 // removed from thumbnail mode.
783 void SetNTPThumbnailMode(Browser* browser, 798 void SetNTPThumbnailMode(Browser* browser,
784 DictionaryValue* args, 799 DictionaryValue* args,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 // Used to enumerate browser profiles. 904 // Used to enumerate browser profiles.
890 scoped_refptr<ImporterList> importer_list_; 905 scoped_refptr<ImporterList> importer_list_;
891 906
892 // The stored data for the ImportSettings operation. 907 // The stored data for the ImportSettings operation.
893 ImportSettingsData import_settings_data_; 908 ImportSettingsData import_settings_data_;
894 909
895 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 910 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
896 }; 911 };
897 912
898 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 913 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698