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

Unified Diff: chrome/browser/ui/panels/auto_hiding_desktop_bar_cocoa.mm

Issue 7646003: Support auto-hide taskbar for panels on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/panels/auto_hiding_desktop_bar_cocoa.mm
===================================================================
--- chrome/browser/ui/panels/auto_hiding_desktop_bar_cocoa.mm (revision 0)
+++ chrome/browser/ui/panels/auto_hiding_desktop_bar_cocoa.mm (revision 0)
@@ -0,0 +1,61 @@
+// Copyright (c) 2011 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.
+
+#include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h"
+
+#include "base/compiler_specific.h"
+#include "base/logging.h"
+
+namespace {
+
+class AutoHidingDesktopBarCocoa : public AutoHidingDesktopBar {
+ public:
+ explicit AutoHidingDesktopBarCocoa(Observer* observer);
+ virtual ~AutoHidingDesktopBarCocoa() { }
+
+ // Overridden from AutoHidingDesktopBar:
+ virtual void UpdateWorkArea(const gfx::Rect& work_area) OVERRIDE;
+ virtual bool IsEnabled(Alignment alignment) OVERRIDE;
+ virtual int GetThickness(Alignment alignment) const OVERRIDE;
+ virtual Visibility GetVisibility(Alignment alignment) const OVERRIDE;
+
+ private:
+ Observer* observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(AutoHidingDesktopBarCocoa);
+};
+
+AutoHidingDesktopBarCocoa::AutoHidingDesktopBarCocoa(Observer* observer)
+ : observer_(observer) {
+ DCHECK(observer);
+}
+
+void AutoHidingDesktopBarCocoa::UpdateWorkArea(const gfx::Rect& work_area) {
+ NOTIMPLEMENTED();
+}
+
+bool AutoHidingDesktopBarCocoa::IsEnabled(
+ AutoHidingDesktopBar::Alignment alignment) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+int AutoHidingDesktopBarCocoa::GetThickness(
+ AutoHidingDesktopBar::Alignment alignment) const {
+ NOTIMPLEMENTED();
+ return 0;
+}
+
+AutoHidingDesktopBar::Visibility AutoHidingDesktopBarCocoa::GetVisibility(
+ AutoHidingDesktopBar::Alignment alignment) const {
+ NOTIMPLEMENTED();
+ return AutoHidingDesktopBar::HIDDEN;
+}
+
+} // namespace
+
+// static
+AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) {
+ return new AutoHidingDesktopBarCocoa(observer);
+}
Property changes on: chrome\browser\ui\panels\auto_hiding_desktop_bar_cocoa.mm
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/panels/auto_hiding_desktop_bar_chromeos.cc ('k') | chrome/browser/ui/panels/auto_hiding_desktop_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698