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

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

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 5 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 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void UpdateDraggableRegions( 128 virtual void UpdateDraggableRegions(
129 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 129 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
130 virtual SkRegion* GetDraggableRegion() OVERRIDE; 130 virtual SkRegion* GetDraggableRegion() OVERRIDE;
131 virtual void HandleKeyboardEvent( 131 virtual void HandleKeyboardEvent(
132 const content::NativeWebKeyboardEvent& event) OVERRIDE; 132 const content::NativeWebKeyboardEvent& event) OVERRIDE;
133 virtual bool IsFrameless() const OVERRIDE; 133 virtual bool IsFrameless() const OVERRIDE;
134 virtual bool HasFrameColor() const OVERRIDE; 134 virtual bool HasFrameColor() const OVERRIDE;
135 virtual SkColor ActiveFrameColor() const OVERRIDE; 135 virtual SkColor ActiveFrameColor() const OVERRIDE;
136 virtual SkColor InactiveFrameColor() const OVERRIDE; 136 virtual SkColor InactiveFrameColor() const OVERRIDE;
137 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 137 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
138 virtual bool CanHaveTransparentBackground() const OVERRIDE;
138 139
139 // These are used to simulate Mac-style hide/show. Since windows can be hidden 140 // These are used to simulate Mac-style hide/show. Since windows can be hidden
140 // and shown using the app.window API, this sets is_hidden_with_app_ to 141 // and shown using the app.window API, this sets is_hidden_with_app_ to
141 // differentiate the reason a window was hidden. 142 // differentiate the reason a window was hidden.
142 virtual void ShowWithApp() OVERRIDE; 143 virtual void ShowWithApp() OVERRIDE;
143 virtual void HideWithApp() OVERRIDE; 144 virtual void HideWithApp() OVERRIDE;
144 virtual void UpdateShelfMenu() OVERRIDE; 145 virtual void UpdateShelfMenu() OVERRIDE;
145 virtual gfx::Size GetContentMinimumSize() const OVERRIDE; 146 virtual gfx::Size GetContentMinimumSize() const OVERRIDE;
146 virtual gfx::Size GetContentMaximumSize() const OVERRIDE; 147 virtual gfx::Size GetContentMaximumSize() const OVERRIDE;
147 virtual void SetContentSizeConstraints(const gfx::Size& min_size, 148 virtual void SetContentSizeConstraints(const gfx::Size& min_size,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 std::vector<extensions::DraggableRegion> draggable_regions_; 212 std::vector<extensions::DraggableRegion> draggable_regions_;
212 213
213 // The Extension Command Registry used to determine which keyboard events to 214 // The Extension Command Registry used to determine which keyboard events to
214 // handle. 215 // handle.
215 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 216 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
216 217
217 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 218 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
218 }; 219 };
219 220
220 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 221 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698