OLD | NEW |
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/frame/desktop_browser_frame_aura.h" | 5 #include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h" |
6 | 6 |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host.h" | 8 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host.h" |
9 #include "chrome/browser/ui/views/frame/browser_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_view.h" |
10 #include "chrome/browser/web_applications/web_app.h" | 10 #include "chrome/browser/web_applications/web_app.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 gfx::Rect* bounds, | 98 gfx::Rect* bounds, |
99 ui::WindowShowState* show_state) const { | 99 ui::WindowShowState* show_state) const { |
100 *bounds = GetWidget()->GetRestoredBounds(); | 100 *bounds = GetWidget()->GetRestoredBounds(); |
101 if (IsMaximized()) | 101 if (IsMaximized()) |
102 *show_state = ui::SHOW_STATE_MAXIMIZED; | 102 *show_state = ui::SHOW_STATE_MAXIMIZED; |
103 else if (IsMinimized()) | 103 else if (IsMinimized()) |
104 *show_state = ui::SHOW_STATE_MINIMIZED; | 104 *show_state = ui::SHOW_STATE_MINIMIZED; |
105 else | 105 else |
106 *show_state = ui::SHOW_STATE_NORMAL; | 106 *show_state = ui::SHOW_STATE_NORMAL; |
107 } | 107 } |
| 108 |
| 109 bool DesktopBrowserFrameAura::PreHandleKeyboardEvent( |
| 110 const content::NativeWebKeyboardEvent& event) { |
| 111 return false; |
| 112 } |
| 113 |
| 114 bool DesktopBrowserFrameAura::HandleKeyboardEvent( |
| 115 const content::NativeWebKeyboardEvent& event) { |
| 116 return false; |
| 117 } |
OLD | NEW |