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

Side by Side Diff: chrome/browser/extensions/extension_input_api.cc

Issue 6487002: Add a new constructor to KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 #include "chrome/browser/extensions/extension_input_api.h" 5 #include "chrome/browser/extensions/extension_input_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 return false; 112 return false;
113 } 113 }
114 } 114 }
115 115
116 views::RootView* root_view = GetRootView(); 116 views::RootView* root_view = GetRootView();
117 if (!root_view) { 117 if (!root_view) {
118 error_ = kNoValidRecipientError; 118 error_ = kNoValidRecipientError;
119 return false; 119 return false;
120 } 120 }
121 121
122 views::KeyEvent event(type, prototype_event.key_code(), flags, 0, 0); 122 views::KeyEvent event(type, prototype_event.key_code(), flags);
123 if (!root_view->ProcessKeyEvent(event)) { 123 if (!root_view->ProcessKeyEvent(event)) {
124 error_ = kKeyEventUnprocessedError; 124 error_ = kKeyEventUnprocessedError;
125 return false; 125 return false;
126 } 126 }
127 127
128 return true; 128 return true;
129 } 129 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_tester.cc ('k') | chrome/browser/extensions/key_identifier_conversion_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698