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

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 comments, fix tests, cleanup, etc. 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); 23 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
24 virtual bool OnMouseDragged(const views::MouseEvent& event); 24 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
25 virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled); 25 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
26 virtual void OnMouseCaptureLost() OVERRIDE;
26 virtual gfx::Size GetPreferredSize(); 27 virtual gfx::Size GetPreferredSize();
27 virtual void OnPaint(gfx::Canvas* canvas); 28 virtual void OnPaint(gfx::Canvas* canvas);
28 29
29 private: 30 private:
30 // Non-owning pointer to our parent scroller object. 31 // Non-owning pointer to our parent scroller object.
31 PanelScroller* scroller_; 32 PanelScroller* scroller_;
32 33
33 string16 title_; 34 string16 title_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader); 36 DISALLOW_COPY_AND_ASSIGN(PanelScrollerHeader);
36 }; 37 };
37 38
38 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_ 39 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_HEADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/panels/panel_scroller.cc ('k') | chrome/browser/chromeos/panels/panel_scroller_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698