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

Side by Side Diff: chrome/test/render_view_test.h

Issue 4078003: Refactoring select popup on Mac.... (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « chrome/renderer/renderer_main.cc ('k') | chrome/test/render_view_test.cc » ('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) 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_RENDER_VIEW_TEST_H_ 5 #ifndef CHROME_TEST_RENDER_VIEW_TEST_H_
6 #define CHROME_TEST_RENDER_VIEW_TEST_H_ 6 #define CHROME_TEST_RENDER_VIEW_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 30 matching lines...) Expand all
41 // Spins the message loop to process all messages that are currently pending. 41 // Spins the message loop to process all messages that are currently pending.
42 void ProcessPendingMessages(); 42 void ProcessPendingMessages();
43 43
44 // Returns a pointer to the main frame. 44 // Returns a pointer to the main frame.
45 WebKit::WebFrame* GetMainFrame(); 45 WebKit::WebFrame* GetMainFrame();
46 46
47 // Executes the given JavaScript in the context of the main frame. The input 47 // Executes the given JavaScript in the context of the main frame. The input
48 // is a NULL-terminated UTF-8 string. 48 // is a NULL-terminated UTF-8 string.
49 void ExecuteJavaScript(const char* js); 49 void ExecuteJavaScript(const char* js);
50 50
51 // Executes the given JavaScript and sets the int value it evaluates to in
52 // |result|.
53 // Returns true if the JavaScript was evaluated correctly to an int value,
54 // false otherwise.
55 bool ExecuteJavaScriptAndReturnIntValue(const string16& script, int* result);
56
51 // Loads the given HTML into the main frame as a data: URL. 57 // Loads the given HTML into the main frame as a data: URL.
52 void LoadHTML(const char* html); 58 void LoadHTML(const char* html);
53 59
54 // Sends IPC messages that emulates a key-press event. 60 // Sends IPC messages that emulates a key-press event.
55 int SendKeyEvent(MockKeyboard::Layout layout, 61 int SendKeyEvent(MockKeyboard::Layout layout,
56 int key_code, 62 int key_code,
57 MockKeyboard::Modifiers key_modifiers, 63 MockKeyboard::Modifiers key_modifiers,
58 std::wstring* output); 64 std::wstring* output);
59 65
60 // Sends one native key event over IPC. 66 // Sends one native key event over IPC.
(...skipping 28 matching lines...) Expand all
89 scoped_ptr<MockKeyboard> mock_keyboard_; 95 scoped_ptr<MockKeyboard> mock_keyboard_;
90 96
91 // Used to setup the process so renderers can run. 97 // Used to setup the process so renderers can run.
92 scoped_ptr<RendererMainPlatformDelegate> platform_; 98 scoped_ptr<RendererMainPlatformDelegate> platform_;
93 scoped_ptr<MainFunctionParams> params_; 99 scoped_ptr<MainFunctionParams> params_;
94 scoped_ptr<CommandLine> command_line_; 100 scoped_ptr<CommandLine> command_line_;
95 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; 101 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_;
96 }; 102 };
97 103
98 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ 104 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_main.cc ('k') | chrome/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698