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

Side by Side Diff: chrome/browser/ui/views/frame/desktop_browser_frame_aura.cc

Issue 2074643003: MacViews: Views accelerators table should match the Cocoa one. (Closed) Base URL: ssh://bitbucket.browser.yandex-team.ru/chromium/src.git@master
Patch Set: GetWindowKeyboardShortcutTable is now shared between Cocoa and MacViews. Created 4 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
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/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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698