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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view_platform.h

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: Updated accelerator_table.cc, removed non-Cocoa shortcuts, added global_keyboard_shortcuts_mac.mm h… Created 4 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_PLATFORM_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_PLATFORM_H_
7
8 #include "content/public/browser/native_web_keyboard_event.h"
9
10 class Browser;
11
12 // Handles the platform-specific differences that couldn't be implemented
13 // directly inside BrowserView.
14 class BrowserViewPlatform {
15 public:
16 // On Cocoa we have three additional global shortcut tables that couldn't be
17 // migrated to accelerator_table.cc (crbug.com/25946).
18
19 // Returns true if the |event| was handled by the platform implementation.
20 static bool PreHandleKeyboardEvent(
21 const content::NativeWebKeyboardEvent& event,
22 Browser* browser);
23 // Returns true if the |event| was handled by the platform implementation.
tapted 2016/10/17 07:02:47 nit: blank line before
themblsha 2016/10/20 16:41:05 Done.
24 static bool HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event,
25 Browser* browser);
26 };
27
28 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698