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

Unified Diff: chrome/browser/ui/panels/native_panel_stack.h

Issue 14188014: Rename NativePanelStack to NativePanelStackWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/panels/native_panel_stack.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/native_panel_stack.h
diff --git a/chrome/browser/ui/panels/native_panel_stack.h b/chrome/browser/ui/panels/native_panel_stack.h
deleted file mode 100644
index 082a6872260ebffe91a5d2f699bd40fc8c71876a..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/panels/native_panel_stack.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2013 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_PANELS_NATIVE_PANEL_STACK_H_
-#define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_
-
-#include "base/memory/scoped_ptr.h"
-
-class Panel;
-class StackedPanelCollection;
-namespace gfx {
-class Rect;
-}
-
-// An interface that encapsulates the platform-specific behaviors that are
-// needed to support multiple panels that are stacked together. A native
-// window might be created to enclose all the panels in the stack. The lifetime
-// of the class that implements this interface is managed by itself.
-class NativePanelStack {
- public:
- // Creates and returns a NativePanelStack instance whose lifetime is managed
- // by itself and it will be valid until Close is called. NativePanelStack
- // also owns the StackedPanelCollection instance being passed here.
- static NativePanelStack* Create(scoped_ptr<StackedPanelCollection> stack);
-
- virtual ~NativePanelStack() {}
-
- virtual bool IsMinimized() const = 0;
-
- protected:
- friend class StackedPanelCollection;
-
- // Called when the stack is to be closed. This will destruct the
- // NativePanelStack instance which causes the StackedPanelCollection
- // instance to be also destructed since the former owns the later.
- virtual void Close() = 0;
-
- // Called when |panel| is being added to or removed from the stack.
- virtual void OnPanelAddedOrRemoved(Panel* panel) = 0;
-
- // Sets the bounds that is big enough to enclose all panels in the stack.
- virtual void SetBounds(const gfx::Rect& bounds) = 0;
-
- // Minimizes all the panels in the stack as a whole via system.
- virtual void Minimize() = 0;
-
- // Draws or clears the attention via system. The system might choose to
- // flash the taskbar icon for attention.
- virtual void DrawSystemAttention(bool draw_attention) = 0;
-};
-
-#endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_
« no previous file with comments | « no previous file | chrome/browser/ui/panels/native_panel_stack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698