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

Side by Side Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h

Issue 1316013004: Remove "API proposal for chrome.app.window to intercept all keys." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 const std::vector<extensions::DraggableRegion>& regions) override; 132 const std::vector<extensions::DraggableRegion>& regions) override;
133 SkRegion* GetDraggableRegion() override; 133 SkRegion* GetDraggableRegion() override;
134 void HandleKeyboardEvent( 134 void HandleKeyboardEvent(
135 const content::NativeWebKeyboardEvent& event) override; 135 const content::NativeWebKeyboardEvent& event) override;
136 bool IsFrameless() const override; 136 bool IsFrameless() const override;
137 bool HasFrameColor() const override; 137 bool HasFrameColor() const override;
138 SkColor ActiveFrameColor() const override; 138 SkColor ActiveFrameColor() const override;
139 SkColor InactiveFrameColor() const override; 139 SkColor InactiveFrameColor() const override;
140 gfx::Insets GetFrameInsets() const override; 140 gfx::Insets GetFrameInsets() const override;
141 bool CanHaveAlphaEnabled() const override; 141 bool CanHaveAlphaEnabled() const override;
142 void SetInterceptAllKeys(bool want_all_keys) override;
143 142
144 // These are used to simulate Mac-style hide/show. Since windows can be hidden 143 // These are used to simulate Mac-style hide/show. Since windows can be hidden
145 // and shown using the app.window API, this sets is_hidden_with_app_ to 144 // and shown using the app.window API, this sets is_hidden_with_app_ to
146 // differentiate the reason a window was hidden. 145 // differentiate the reason a window was hidden.
147 void ShowWithApp() override; 146 void ShowWithApp() override;
148 void HideWithApp() override; 147 void HideWithApp() override;
149 gfx::Size GetContentMinimumSize() const override; 148 gfx::Size GetContentMinimumSize() const override;
150 gfx::Size GetContentMaximumSize() const override; 149 gfx::Size GetContentMaximumSize() const override;
151 void SetContentSizeConstraints(const gfx::Size& min_size, 150 void SetContentSizeConstraints(const gfx::Size& min_size,
152 const gfx::Size& max_size) override; 151 const gfx::Size& max_size) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // handle. 215 // handle.
217 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 216 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
218 217
219 // Tracks the last time the extension asked the window to activate. 218 // Tracks the last time the extension asked the window to activate.
220 base::Time last_activate_; 219 base::Time last_activate_;
221 220
222 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 221 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
223 }; 222 };
224 223
225 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 224 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698