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

Side by Side Diff: chrome/browser/chromeos/panels/panel_scroller_header.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) 2011 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_HEADER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_
6 #define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_ 6 #define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_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 "base/string16.h" 11 #include "base/string16.h"
11 #include "views/view.h" 12 #include "views/view.h"
12 13
13 class PanelScroller; 14 class PanelScroller;
14 15
15 class PanelScrollerHeader : public views::View { 16 class PanelScrollerHeader : public views::View {
16 public: 17 public:
17 explicit PanelScrollerHeader(PanelScroller* scroller); 18 explicit PanelScrollerHeader(PanelScroller* scroller);
18 virtual ~PanelScrollerHeader(); 19 virtual ~PanelScrollerHeader();
19 20
20 void set_title(const string16& title) { title_ = title; } 21 void set_title(const string16& title) { title_ = title; }
21 22
22 // views::View overrides. 23 // views::View overrides.
23 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 24 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
24 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 25 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
25 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 26 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
26 virtual void OnMouseCaptureLost() OVERRIDE; 27 virtual void OnMouseCaptureLost() OVERRIDE;
27 virtual gfx::Size GetPreferredSize(); 28 virtual gfx::Size GetPreferredSize() OVERRIDE;
28 virtual void OnPaint(gfx::Canvas* canvas); 29 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
29 30
30 private: 31 private:
31 // Non-owning pointer to our parent scroller object. 32 // Non-owning pointer to our parent scroller object.
32 PanelScroller* scroller_; 33 PanelScroller* scroller_;
33 34
34 string16 title_; 35 string16 title_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader); 37 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader);
37 }; 38 };
38 39
39 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698