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

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

Issue 5089001: Cleanup: Include browser.h -> ui/browser.h [Part 3]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. 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
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 #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 "app/keyboard_code_conversion.h" 9 #include "app/keyboard_code_conversion.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_window.h" 11 #include "chrome/browser/browser_window.h"
13 #include "chrome/browser/extensions/extension_tabs_module.h" 12 #include "chrome/browser/extensions/extension_tabs_module.h"
14 #include "chrome/browser/renderer_host/render_view_host.h" 13 #include "chrome/browser/renderer_host/render_view_host.h"
15 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/views/frame/browser_view.h" 16 #include "chrome/browser/views/frame/browser_view.h"
17 #include "chrome/common/native_web_keyboard_event.h" 17 #include "chrome/common/native_web_keyboard_event.h"
18 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 18 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
19 #include "views/event.h" 19 #include "views/event.h"
20 #include "views/widget/root_view.h" 20 #include "views/widget/root_view.h"
21 21
22 namespace { 22 namespace {
23 23
24 // Keys. 24 // Keys.
25 const char kType[] = "type"; 25 const char kType[] = "type";
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 views::KeyEvent event(type, code, flags, 0, 0); 113 views::KeyEvent event(type, code, flags, 0, 0);
114 if (!root_view->ProcessKeyEvent(event)) { 114 if (!root_view->ProcessKeyEvent(event)) {
115 error_ = kKeyEventUnprocessedError; 115 error_ = kKeyEventUnprocessedError;
116 return false; 116 return false;
117 } 117 }
118 118
119 return true; 119 return true;
120 } 120 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_infobar_module.cc ('k') | chrome/browser/extensions/extension_install_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698