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

Side by Side Diff: chrome/browser/ui/panels/panel.cc

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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 | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.h » ('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/panels/panel.h" 5 #include "chrome/browser/ui/panels/panel.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_finder.h" 11 #include "chrome/browser/ui/browser_finder.h"
12 #include "chrome/browser/ui/panels/native_panel.h" 12 #include "chrome/browser/ui/panels/native_panel.h"
13 #include "chrome/browser/ui/panels/panel_manager.h" 13 #include "chrome/browser/ui/panels/panel_manager.h"
14 #include "chrome/browser/ui/panels/panel_strip.h" 14 #include "chrome/browser/ui/panels/panel_strip.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" 16 #include "chrome/browser/ui/tabs/tab_strip_model.h"
17 #include "chrome/browser/ui/window_sizer.h" 17 #include "chrome/browser/ui/window_sizer.h"
18 #include "chrome/common/chrome_notification_types.h" 18 #include "chrome/common/chrome_notification_types.h"
19 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
20 #include "content/public/browser/notification_source.h" 20 #include "content/public/browser/notification_source.h"
21 #include "content/public/browser/notification_types.h" 21 #include "content/public/browser/notification_types.h"
22 #include "content/public/browser/render_view_host.h" 22 #include "content/public/browser/render_view_host.h"
23 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
24 #include "ui/gfx/rect.h" 24 #include "ui/gfx/rect.h"
25 25
26 #if defined(USE_AURA) 26 #if defined(USE_AURA)
27 #include "chrome/browser/ui/panels/panel_browser_view.h" 27 #include "chrome/browser/ui/panels/panel_browser_view.h"
28 #endif 28 #endif
29 29
30 using content::NativeWebKeyboardEvent;
30 using content::RenderViewHost; 31 using content::RenderViewHost;
31 using content::SSLStatus; 32 using content::SSLStatus;
32 using content::WebContents; 33 using content::WebContents;
33 34
34 Panel::Panel(Browser* browser, const gfx::Size& requested_size) 35 Panel::Panel(Browser* browser, const gfx::Size& requested_size)
35 : browser_(browser), 36 : browser_(browser),
36 panel_strip_(NULL), 37 panel_strip_(NULL),
37 initialized_(false), 38 initialized_(false),
38 full_size_(requested_size), 39 full_size_(requested_size),
39 max_size_policy_(DEFAULT_MAX_SIZE), 40 max_size_policy_(DEFAULT_MAX_SIZE),
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 max_size_policy_ = CUSTOM_MAX_SIZE; 788 max_size_policy_ = CUSTOM_MAX_SIZE;
788 } 789 }
789 790
790 void Panel::OnPanelEndUserResizing() { 791 void Panel::OnPanelEndUserResizing() {
791 SetPreviewMode(false); 792 SetPreviewMode(false);
792 } 793 }
793 794
794 void Panel::DestroyBrowser() { 795 void Panel::DestroyBrowser() {
795 native_panel_->DestroyPanelBrowser(); 796 native_panel_->DestroyPanelBrowser();
796 } 797 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698