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

Side by Side Diff: content/shell/shell.h

Issue 12317133: [content shell] don't require a user action for focus/blur events during layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/shell/shell.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_SHELL_SHELL_H_ 4 #ifndef CONTENT_SHELL_SHELL_H_
5 #define CONTENT_SHELL_SHELL_H_ 5 #define CONTENT_SHELL_SHELL_H_
6 6
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void HandleKeyboardEvent( 132 virtual void HandleKeyboardEvent(
133 WebContents* source, 133 WebContents* source,
134 const NativeWebKeyboardEvent& event) OVERRIDE; 134 const NativeWebKeyboardEvent& event) OVERRIDE;
135 #endif 135 #endif
136 virtual bool AddMessageToConsole(WebContents* source, 136 virtual bool AddMessageToConsole(WebContents* source,
137 int32 level, 137 int32 level,
138 const string16& message, 138 const string16& message,
139 int32 line_no, 139 int32 line_no,
140 const string16& source_id) OVERRIDE; 140 const string16& source_id) OVERRIDE;
141 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; 141 virtual void RendererUnresponsive(WebContents* source) OVERRIDE;
142 virtual void ActivateContents(WebContents* contents) OVERRIDE;
143 virtual void DeactivateContents(WebContents* contents) OVERRIDE;
142 144
143 private: 145 private:
144 enum UIControl { 146 enum UIControl {
145 BACK_BUTTON, 147 BACK_BUTTON,
146 FORWARD_BUTTON, 148 FORWARD_BUTTON,
147 STOP_BUTTON 149 STOP_BUTTON
148 }; 150 };
149 151
150 explicit Shell(WebContents* web_contents); 152 explicit Shell(WebContents* web_contents);
151 153
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 static base::Callback<void(Shell*)> shell_created_callback_; 259 static base::Callback<void(Shell*)> shell_created_callback_;
258 260
259 // True if the destructur of Shell should post a quit closure on the current 261 // True if the destructur of Shell should post a quit closure on the current
260 // message loop if the destructed Shell object was the last one. 262 // message loop if the destructed Shell object was the last one.
261 static bool quit_message_loop_; 263 static bool quit_message_loop_;
262 }; 264 };
263 265
264 } // namespace content 266 } // namespace content
265 267
266 #endif // CONTENT_SHELL_SHELL_H_ 268 #endif // CONTENT_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698