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

Side by Side Diff: chrome/browser/chromeos/panels/panel_scroller_container.h

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_
6 #define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ 6 #define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
10 #include "views/view.h" 11 #include "views/view.h"
11 12
12 class PanelScroller; 13 class PanelScroller;
13 14
14 // This class wraps the contents of a panel in the panel scroller. It currently 15 // This class wraps the contents of a panel in the panel scroller. It currently
15 // doesn't do anything useful, but it just a placeholder. 16 // doesn't do anything useful, but it just a placeholder.
16 class PanelScrollerContainer : public views::View { 17 class PanelScrollerContainer : public views::View {
17 public: 18 public:
18 PanelScrollerContainer(PanelScroller* scroller, views::View* contents); 19 PanelScrollerContainer(PanelScroller* scroller, views::View* contents);
19 virtual ~PanelScrollerContainer(); 20 virtual ~PanelScrollerContainer();
20 21
21 int HeaderSize() const; 22 int HeaderSize() const;
22 23
23 // view::View overrides. 24 // view::View overrides.
24 virtual gfx::Size GetPreferredSize(); 25 virtual gfx::Size GetPreferredSize() OVERRIDE;
25 virtual void Layout(); 26 virtual void Layout() OVERRIDE;
26 virtual void OnPaint(gfx::Canvas* canvas); 27 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
27 28
28 private: 29 private:
29 // Non-owning pointer to our parent scroller object. 30 // Non-owning pointer to our parent scroller object.
30 PanelScroller* scroller_; 31 PanelScroller* scroller_;
31 32
32 views::View* contents_; 33 views::View* contents_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(PanelScrollerContainer); 35 DISALLOW_COPY_AND_ASSIGN(PanelScrollerContainer);
35 }; 36 };
36 37
37 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ 38 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698