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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_view_views.cc

Issue 23533057: Makes native_widget_types forward declare ui::Cursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_aura Created 7 years, 3 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 | « ash/wm/image_cursors.h ('k') | content/browser/web_contents/aura/image_window_delegate.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 4
5 #include "chrome/browser/ui/views/extensions/extension_view_views.h" 5 #include "chrome/browser/ui/views/extensions/extension_view_views.h"
6 6
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/ui/views/extensions/extension_popup.h" 8 #include "chrome/browser/ui/views/extensions/extension_popup.h"
9 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
11 #include "content/public/browser/render_widget_host_view.h" 11 #include "content/public/browser/render_widget_host_view.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/public/browser/web_contents_view.h" 13 #include "content/public/browser/web_contents_view.h"
14 #include "extensions/common/view_type.h" 14 #include "extensions/common/view_type.h"
15 #include "ui/base/events/event.h" 15 #include "ui/base/events/event.h"
16 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 17
18 #if defined(USE_AURA)
19 #include "ui/base/cursor/cursor.h"
20 #endif
Ben Goodger (Google) 2013/09/16 19:57:19 newline after
18 ExtensionViewViews::ExtensionViewViews(extensions::ExtensionHost* host, 21 ExtensionViewViews::ExtensionViewViews(extensions::ExtensionHost* host,
19 Browser* browser) 22 Browser* browser)
20 : host_(host), 23 : host_(host),
21 browser_(browser), 24 browser_(browser),
22 initialized_(false), 25 initialized_(false),
23 container_(NULL), 26 container_(NULL),
24 is_clipped_(false) { 27 is_clipped_(false) {
25 // This view needs to be focusable so it can act as the focused view for the 28 // This view needs to be focusable so it can act as the focused view for the
26 // focus manager. This is required to have SkipDefaultKeyEventProcessing 29 // focus manager. This is required to have SkipDefaultKeyEventProcessing
27 // called so the tab key events are forwarded to the renderer. 30 // called so the tab key events are forwarded to the renderer.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 167
165 if (container_) 168 if (container_)
166 container_->OnViewWasResized(); 169 container_->OnViewWasResized();
167 } 170 }
168 171
169 void ExtensionViewViews::HandleKeyboardEvent( 172 void ExtensionViewViews::HandleKeyboardEvent(
170 const content::NativeWebKeyboardEvent& event) { 173 const content::NativeWebKeyboardEvent& event) {
171 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, 174 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event,
172 GetFocusManager()); 175 GetFocusManager());
173 } 176 }
OLDNEW
« no previous file with comments | « ash/wm/image_cursors.h ('k') | content/browser/web_contents/aura/image_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698