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

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

Issue 8351009: Updating PageClickTracker to Notify listeners When Text Input Loses Focus. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixing included headers Created 9 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/page_click_tracker_browsertest.cc ('k') | content/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) 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 CONTENT_TEST_RENDER_VIEW_TEST_H_ 5 #ifndef CONTENT_TEST_RENDER_VIEW_TEST_H_
6 #define CONTENT_TEST_RENDER_VIEW_TEST_H_ 6 #define CONTENT_TEST_RENDER_VIEW_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Sends IPC messages that emulates a key-press event. 76 // Sends IPC messages that emulates a key-press event.
77 int SendKeyEvent(MockKeyboard::Layout layout, 77 int SendKeyEvent(MockKeyboard::Layout layout,
78 int key_code, 78 int key_code,
79 MockKeyboard::Modifiers key_modifiers, 79 MockKeyboard::Modifiers key_modifiers,
80 std::wstring* output); 80 std::wstring* output);
81 81
82 // Sends one native key event over IPC. 82 // Sends one native key event over IPC.
83 void SendNativeKeyEvent(const NativeWebKeyboardEvent& key_event); 83 void SendNativeKeyEvent(const NativeWebKeyboardEvent& key_event);
84 84
85 // Send a raw keyboard event to the renderer.
86 void SendWebKeyboardEvent(const WebKit::WebKeyboardEvent& key_event);
87
85 // Returns the bounds (coordinates and size) of the element with id 88 // Returns the bounds (coordinates and size) of the element with id
86 // |element_id|. Returns an empty rect if such an element was not found. 89 // |element_id|. Returns an empty rect if such an element was not found.
87 gfx::Rect GetElementBounds(const std::string& element_id); 90 gfx::Rect GetElementBounds(const std::string& element_id);
88 91
89 // Sends a left mouse click in the middle of the element with id |element_id|. 92 // Sends a left mouse click in the middle of the element with id |element_id|.
90 // Returns true if the event was sent, false otherwise (typically because 93 // Returns true if the event was sent, false otherwise (typically because
91 // the element was not found). 94 // the element was not found).
92 bool SimulateElementClick(const std::string& element_id); 95 bool SimulateElementClick(const std::string& element_id);
93 96
94 // Clears anything associated with the browsing history. 97 // Clears anything associated with the browsing history.
(...skipping 28 matching lines...) Expand all
123 126
124 // Used to setup the process so renderers can run. 127 // Used to setup the process so renderers can run.
125 scoped_ptr<RendererMainPlatformDelegate> platform_; 128 scoped_ptr<RendererMainPlatformDelegate> platform_;
126 scoped_ptr<content::MainFunctionParams> params_; 129 scoped_ptr<content::MainFunctionParams> params_;
127 scoped_ptr<CommandLine> command_line_; 130 scoped_ptr<CommandLine> command_line_;
128 }; 131 };
129 132
130 } // namespace content 133 } // namespace content
131 134
132 #endif // CONTENT_TEST_RENDER_VIEW_TEST_H_ 135 #endif // CONTENT_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/page_click_tracker_browsertest.cc ('k') | content/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698