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

Side by Side Diff: extensions/shell/browser/shell_native_app_window_aura.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/shell/browser/shell_native_app_window.h" 9 #include "extensions/shell/browser/shell_native_app_window.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 // The Aura-specific parts of the app_shell NativeAppWindow implementation. 13 // The Aura-specific parts of the app_shell NativeAppWindow implementation.
14 class ShellNativeAppWindowAura : public ShellNativeAppWindow { 14 class ShellNativeAppWindowAura : public ShellNativeAppWindow {
15 public: 15 public:
16 ShellNativeAppWindowAura(extensions::AppWindow* app_window, 16 ShellNativeAppWindowAura(extensions::AppWindow* app_window,
17 const AppWindow::CreateParams& params); 17 const AppWindow::CreateParams& params);
18 ~ShellNativeAppWindowAura() override; 18 ~ShellNativeAppWindowAura() override;
19 19
20 // ui::BaseWindow: 20 // ui::BaseWindow:
21 bool IsActive() const override; 21 bool IsActive() const override;
22 gfx::NativeWindow GetNativeWindow() const override; 22 gfx::NativeWindow GetNativeWindow() const override;
23 gfx::Rect GetBounds() const override; 23 gfx::Rect GetBounds() const override;
24 void Show() override; 24 void Show() override;
25 void Hide() override; 25 void Hide() override;
26 void Activate() override; 26 void Activate(bool user_gesture) override;
27 void Deactivate() override; 27 void Deactivate() override;
28 void SetBounds(const gfx::Rect& bounds) override; 28 void SetBounds(const gfx::Rect& bounds) override;
29 29
30 private: 30 private:
31 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindowAura); 31 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindowAura);
32 }; 32 };
33 33
34 } // namespace extensions 34 } // namespace extensions
35 35
36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_ 36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698