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

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

Issue 1149263003: Add user_gesture param to BaseWindow::Activate Base URL: https://chromium.googlesource.com/chromium/src.git@ug2_WebContentsDelegate_ActivateContents
Patch Set: Update callers Created 5 years, 7 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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool IsMinimized() const override; 56 bool IsMinimized() const override;
57 bool IsFullscreen() const override; 57 bool IsFullscreen() const override;
58 gfx::NativeWindow GetNativeWindow() const override; 58 gfx::NativeWindow GetNativeWindow() const override;
59 gfx::Rect GetRestoredBounds() const override; 59 gfx::Rect GetRestoredBounds() const override;
60 ui::WindowShowState GetRestoredState() const override; 60 ui::WindowShowState GetRestoredState() const override;
61 gfx::Rect GetBounds() const override; 61 gfx::Rect GetBounds() const override;
62 void Show() override; 62 void Show() override;
63 void ShowInactive() override; 63 void ShowInactive() override;
64 void Hide() override; 64 void Hide() override;
65 void Close() override; 65 void Close() override;
66 void Activate() override; 66 void Activate(bool user_gesture) override;
67 void Deactivate() override; 67 void Deactivate() override;
68 void Maximize() override; 68 void Maximize() override;
69 void Minimize() override; 69 void Minimize() override;
70 void Restore() override; 70 void Restore() override;
71 void SetBounds(const gfx::Rect& bounds) override; 71 void SetBounds(const gfx::Rect& bounds) override;
72 void FlashFrame(bool flash) override; 72 void FlashFrame(bool flash) override;
73 bool IsAlwaysOnTop() const override; 73 bool IsAlwaysOnTop() const override;
74 74
75 // Called when the window is about to be closed. 75 // Called when the window is about to be closed.
76 void WindowWillClose(); 76 void WindowWillClose();
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 std::vector<extensions::DraggableRegion> draggable_regions_; 211 std::vector<extensions::DraggableRegion> draggable_regions_;
212 212
213 // The Extension Command Registry used to determine which keyboard events to 213 // The Extension Command Registry used to determine which keyboard events to
214 // handle. 214 // handle.
215 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 215 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
216 216
217 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 217 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
218 }; 218 };
219 219
220 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 220 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698