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

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

Issue 2847091: Fix bad license header under chrome/ directory. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // source code is governed by a BSD-style license that can be found in the 2 // Use of this source code is governed by a BSD-style license that can be
3 // 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 <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "views/view.h" 13 #include "views/view.h"
14 14
15 class PanelScroller; 15 class PanelScroller;
16 16
17 class PanelScrollerHeader : public views::View { 17 class PanelScrollerHeader : public views::View {
18 public: 18 public:
19 explicit PanelScrollerHeader(PanelScroller* scroller); 19 explicit PanelScrollerHeader(PanelScroller* scroller);
20 virtual ~PanelScrollerHeader(); 20 virtual ~PanelScrollerHeader();
21 21
22 void set_title(const string16& title) { 22 void set_title(const string16& title) { title_ = title; }
23 title_ = title;
24 }
25 23
26 // views::View overrides. 24 // views::View overrides.
27 virtual bool OnMousePressed(const views::MouseEvent& event); 25 virtual bool OnMousePressed(const views::MouseEvent& event);
28 virtual bool OnMouseDragged(const views::MouseEvent& event); 26 virtual bool OnMouseDragged(const views::MouseEvent& event);
29 virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled); 27 virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled);
30 virtual gfx::Size GetPreferredSize(); 28 virtual gfx::Size GetPreferredSize();
31 virtual void Paint(gfx::Canvas* canvas); 29 virtual void Paint(gfx::Canvas* canvas);
32 30
33 private: 31 private:
34 // Non-owning pointer to our parent scroller object. 32 // Non-owning pointer to our parent scroller object.
35 PanelScroller* scroller_; 33 PanelScroller* scroller_;
36 34
37 string16 title_; 35 string16 title_;
38 36
39 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader); 37 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader);
40 }; 38 };
41 39
42 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_
43
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698