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

Unified Diff: extensions/shell/browser/shell_native_app_window_aura.h

Issue 696063008: Refactor ShellDesktopController and ShellNativeAppWindow to allow for non-aura implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: + Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: extensions/shell/browser/shell_native_app_window_aura.h
diff --git a/extensions/shell/browser/shell_native_app_window_aura.h b/extensions/shell/browser/shell_native_app_window_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..c566b0250b3a52d16fbb9fb21db1b42e8cfaf1c7
--- /dev/null
+++ b/extensions/shell/browser/shell_native_app_window_aura.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_
+#define EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_
+
+#include "base/macros.h"
+#include "extensions/shell/browser/shell_native_app_window.h"
+
+namespace extensions {
+
+// The Aura-specific parts of the app_shell NativeAppWindow implementation.
+class ShellNativeAppWindowAura : public ShellNativeAppWindow {
+ public:
+ ShellNativeAppWindowAura(extensions::AppWindow* app_window,
+ const AppWindow::CreateParams& params);
+ ~ShellNativeAppWindowAura() override;
+
+ // ui::BaseWindow:
+ bool IsActive() const override;
+ gfx::NativeWindow GetNativeWindow() const override;
+ gfx::Rect GetBounds() const override;
+ void Show() override;
+ void Hide() override;
+ void Activate() override;
+ void Deactivate() override;
+ void SetBounds(const gfx::Rect& bounds) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindowAura);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_AURA_H_
« no previous file with comments | « extensions/shell/browser/shell_native_app_window.cc ('k') | extensions/shell/browser/shell_native_app_window_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698