Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |