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

Side by Side Diff: chrome/browser/ui/views/app_menu_button_win.cc

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. 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
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/app_menu_button_win.h" 5 #include "chrome/browser/ui/views/app_menu_button_win.h"
6 6
7 #include "ui/base/events/event.h" 7 #include "ui/base/events/event.h"
8 #include "ui/base/win/hwnd_util.h" 8 #include "ui/gfx/win/hwnd_util.h"
9 #include "ui/views/widget/widget.h" 9 #include "ui/views/widget/widget.h"
10 10
11 AppMenuButtonWin::AppMenuButtonWin(views::MenuButtonListener* listener) 11 AppMenuButtonWin::AppMenuButtonWin(views::MenuButtonListener* listener)
12 : WrenchToolbarButton(listener) { 12 : WrenchToolbarButton(listener) {
13 } 13 }
14 14
15 bool AppMenuButtonWin::OnKeyPressed(const ui::KeyEvent& event) { 15 bool AppMenuButtonWin::OnKeyPressed(const ui::KeyEvent& event) {
16 if (event.key_code() == ui::VKEY_SPACE) { 16 if (event.key_code() == ui::VKEY_SPACE) {
17 // Explicitly show the system menu at a good location on [Alt]+[Space]. 17 // Explicitly show the system menu at a good location on [Alt]+[Space].
18 ui::ShowSystemMenu(GetWidget()->GetNativeView()); 18 gfx::ShowSystemMenu(GetWidget()->GetNativeView());
19 return false; 19 return false;
20 } 20 }
21 return views::MenuButton::OnKeyPressed(event); 21 return views::MenuButton::OnKeyPressed(event);
22 } 22 }
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_win.cc ('k') | chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698