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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h"
6
7 #include "base/compiler_specific.h"
8 #include "base/logging.h"
9
10 namespace {
11
12 class AutoHidingDesktopBarCocoa : public AutoHidingDesktopBar {
13 public:
14 explicit AutoHidingDesktopBarCocoa(Observer* observer);
15 virtual ~AutoHidingDesktopBarCocoa() { }
16
17 // Overridden from AutoHidingDesktopBar:
18 virtual void UpdateWorkArea(const gfx::Rect& work_area) OVERRIDE;
19 virtual bool IsEnabled(Alignment alignment) OVERRIDE;
20 virtual int GetThickness(Alignment alignment) const OVERRIDE;
21 virtual Visibility GetVisibility(Alignment alignment) const OVERRIDE;
22
23 private:
24 Observer* observer_;
25
26 DISALLOW_COPY_AND_ASSIGN(AutoHidingDesktopBarCocoa);
27 };
28
29 AutoHidingDesktopBarCocoa::AutoHidingDesktopBarCocoa(Observer* observer)
30 : observer_(observer) {
31 DCHECK(observer);
32 }
33
34 void AutoHidingDesktopBarCocoa::UpdateWorkArea(const gfx::Rect& work_area) {
35 NOTIMPLEMENTED();
36 }
37
38 bool AutoHidingDesktopBarCocoa::IsEnabled(
39 AutoHidingDesktopBar::Alignment alignment) {
40 NOTIMPLEMENTED();
41 return false;
42 }
43
44 int AutoHidingDesktopBarCocoa::GetThickness(
45 AutoHidingDesktopBar::Alignment alignment) const {
46 NOTIMPLEMENTED();
47 return 0;
48 }
49
50 AutoHidingDesktopBar::Visibility AutoHidingDesktopBarCocoa::GetVisibility(
51 AutoHidingDesktopBar::Alignment alignment) const {
52 NOTIMPLEMENTED();
53 return AutoHidingDesktopBar::HIDDEN;
54 }
55
56 } // namespace
57
58 // static
59 AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) {
60 return new AutoHidingDesktopBarCocoa(observer);
61 }
OLDNEW
« 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