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

Unified Diff: chrome/browser/ui/extensions/native_shell_window.h

Issue 10825240: Refactor ShellWindow to separate platform-specific code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/extensions/native_shell_window.h
diff --git a/chrome/browser/ui/extensions/native_shell_window.h b/chrome/browser/ui/extensions/native_shell_window.h
new file mode 100644
index 0000000000000000000000000000000000000000..a0e444b186d2b1b9cccc025dd91036e719be7aa7
--- /dev/null
+++ b/chrome/browser/ui/extensions/native_shell_window.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_
+#define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_
+
+#include "chrome/browser/ui/extensions/shell_window.h"
+#include "chrome/browser/ui/base_window.h"
+
+class NativeShellWindow : public BaseWindow {
Evan Stade 2012/08/14 21:33:02 can you document this class?
jeremya 2012/08/15 00:31:54 Done.
+ public:
+ // Used by ShellWindow to instantiate the platform-specific ShellWindow code.
+ static NativeShellWindow* Create(ShellWindow* window,
+ const ShellWindow::CreateParams& params);
+
+ // Called when the title of the window changes.
+ virtual void UpdateWindowTitle() = 0;
+
+ // Called when the draggable regions are changed.
+ virtual void UpdateDraggableRegions(
+ const std::vector<extensions::DraggableRegion>& regions) {}
+
+ virtual void SetFullscreen(bool fullscreen) = 0;
+ virtual bool IsFullscreenOrPending() const = 0;
+
+ virtual ~NativeShellWindow() {}
+};
+
+#endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_

Powered by Google App Engine
This is Rietveld 408576698