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

Unified Diff: chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.h

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 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/cocoa/panels/panel_stack_window_cocoa.h
diff --git a/chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.h b/chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.h
deleted file mode 100644
index 08b4dfba5fd8c63f7e8a38b5ce6bd9efd216f6e3..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.h
+++ /dev/null
@@ -1,94 +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_COCOA_PANELS_PANEL_STACK_WINDOW_COCOA_H_
-#define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_STACK_WINDOW_COCOA_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include <list>
-#include <map>
-#include <memory>
-
-#include "base/mac/scoped_nsobject.h"
-#include "base/macros.h"
-#include "chrome/browser/ui/panels/native_panel_stack_window.h"
-#include "ui/gfx/geometry/rect.h"
-
-@class BatchBoundsAnimationDelegate;
-class Panel;
-class PanelStackWindowCocoa;
-
-// A native window that acts as the owner of all/partial panels in the stack,
-// in order to make these panels appear as a single window.
-class PanelStackWindowCocoa : public NativePanelStackWindow {
- public:
- explicit PanelStackWindowCocoa(NativePanelStackWindowDelegate* delegate);
- ~PanelStackWindowCocoa() override;
-
- // Notified by BatchBoundsAnimationDelegate about the ending of the bounds
- // animation.
- void BoundsUpdateAnimationEnded();
-
- protected:
- // Overridden from NativePanelStackWindow:
- void Close() override;
- void AddPanel(Panel* panel) override;
- void RemovePanel(Panel* panel) override;
- void MergeWith(NativePanelStackWindow* another) override;
- bool IsEmpty() const override;
- bool HasPanel(Panel* panel) const override;
- void MovePanelsBy(const gfx::Vector2d& delta) override;
- void BeginBatchUpdatePanelBounds(bool animate) override;
- void AddPanelBoundsForBatchUpdate(Panel* panel,
- const gfx::Rect& bounds) override;
- void EndBatchUpdatePanelBounds() override;
- bool IsAnimatingPanelBounds() const override;
- void Minimize() override;
- bool IsMinimized() const override;
- void DrawSystemAttention(bool draw_attention) override;
- void OnPanelActivated(Panel* panel) override;
-
- private:
- typedef std::list<Panel*> Panels;
-
- // The map value is old bounds of the panel.
- typedef std::map<Panel*, gfx::Rect> BoundsUpdates;
-
- // Terminates current bounds animation, if any.
- void TerminateBoundsAnimation();
-
- // Computes/updates the minimum bounds that could fit all panels.
- gfx::Rect GetStackWindowBounds() const;
- void UpdateStackWindowBounds();
-
- // Ensures that the background window is created.
- void EnsureWindowCreated();
-
- // Weak pointer. Owned by PanelManager.
- NativePanelStackWindowDelegate* delegate_;
-
- // The underlying window.
- base::scoped_nsobject<NSWindow> window_;
-
- Panels panels_;
-
- // Identifier from requestUserAttention.
- NSInteger attention_request_id_;
-
- // For batch bounds update.
- bool bounds_updates_started_;
- bool animate_bounds_updates_;
- BoundsUpdates bounds_updates_;
-
- // Used to animate the bounds changes at a synchronized pace.
- // Lifetime controlled manually, needs more than just |release| to terminate.
- NSViewAnimation* bounds_animation_;
- base::scoped_nsobject<BatchBoundsAnimationDelegate>
- bounds_animation_delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(PanelStackWindowCocoa);
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_STACK_WINDOW_COCOA_H_
« no previous file with comments | « chrome/browser/ui/cocoa/panels/panel_cocoa_unittest.mm ('k') | chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698