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

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

Issue 6685069: Disambiguate OnMouseCaptureLost from OnMouseReleased, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address most TODOs and sync. Created 9 years, 9 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
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_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/string16.h" 10 #include "base/string16.h"
11 #include "views/view.h" 11 #include "views/view.h"
12 12
13 class PanelScroller; 13 class PanelScroller;
14 14
15 class PanelScrollerHeader : public views::View { 15 class PanelScrollerHeader : public views::View {
16 public: 16 public:
17 explicit PanelScrollerHeader(PanelScroller* scroller); 17 explicit PanelScrollerHeader(PanelScroller* scroller);
18 virtual ~PanelScrollerHeader(); 18 virtual ~PanelScrollerHeader();
19 19
20 void set_title(const string16& title) { title_ = title; } 20 void set_title(const string16& title) { title_ = title; }
21 21
22 // views::View overrides. 22 // views::View overrides.
23 virtual bool OnMousePressed(const views::MouseEvent& event);
24 virtual bool OnMouseDragged(const views::MouseEvent& event);
25 virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled);
26 virtual gfx::Size GetPreferredSize(); 23 virtual gfx::Size GetPreferredSize();
24 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
25 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
26 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
27 virtual void OnMouseCaptureLost() OVERRIDE;
28
29 protected:
27 virtual void OnPaint(gfx::Canvas* canvas); 30 virtual void OnPaint(gfx::Canvas* canvas);
28 31
29 private: 32 private:
30 // Non-owning pointer to our parent scroller object. 33 // Non-owning pointer to our parent scroller object.
31 PanelScroller* scroller_; 34 PanelScroller* scroller_;
32 35
33 string16 title_; 36 string16 title_;
34 37
35 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader); 38 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader);
36 }; 39 };
37 40
38 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_ 41 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698