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

Side by Side Diff: chrome/browser/ui/views/apps/app_window_native_widget_mac.h

Issue 1259513002: [MacViews] Use ChromeCommandDispatcherDelegate to handle keyboard shortcuts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commandexecute
Patch Set: Address comments. Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
7 7
8 #include "ui/views/widget/native_widget_mac.h" 8 #include "ui/views/widget/native_widget_mac.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 class NativeAppWindow; 11 class NativeAppWindow;
12 } 12 }
13 13
14 // This implements features specific to app windows, e.g. frameless windows that 14 // This implements features specific to app windows, e.g. frameless windows that
15 // behave like normal windows. 15 // behave like normal windows.
16 class AppWindowNativeWidgetMac : public views::NativeWidgetMac { 16 class AppWindowNativeWidgetMac : public views::NativeWidgetMac {
17 public: 17 public:
18 AppWindowNativeWidgetMac(views::Widget* widget, 18 AppWindowNativeWidgetMac(views::Widget* widget,
19 extensions::NativeAppWindow* native_app_window); 19 extensions::NativeAppWindow* native_app_window);
20 ~AppWindowNativeWidgetMac() override; 20 ~AppWindowNativeWidgetMac() override;
21 21
22 protected: 22 protected:
23 // NativeWidgetMac: 23 // NativeWidgetMac:
24 gfx::NativeWindow CreateNSWindow( 24 NativeWidgetMacNSWindow* CreateNSWindow(
25 const views::Widget::InitParams& params) override; 25 const views::Widget::InitParams& params) override;
26 26
27 private: 27 private:
28 // Weak. Owned by extensions::AppWindow (which manages our Widget via its 28 // Weak. Owned by extensions::AppWindow (which manages our Widget via its
29 // WebContents). 29 // WebContents).
30 extensions::NativeAppWindow* native_app_window_; 30 extensions::NativeAppWindow* native_app_window_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(AppWindowNativeWidgetMac); 32 DISALLOW_COPY_AND_ASSIGN(AppWindowNativeWidgetMac);
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H 35 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/accelerator_table.cc ('k') | chrome/browser/ui/views/apps/app_window_native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698