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

Side by Side Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.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) 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_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/autocomplete/autocomplete.h" 9 #include "chrome/browser/autocomplete/autocomplete.h"
10 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" 10 #include "chrome/browser/autocomplete/autocomplete_popup_model.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Overridden from ui::AnimationDelegate: 69 // Overridden from ui::AnimationDelegate:
70 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 70 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
71 71
72 // Overridden from views::View: 72 // Overridden from views::View:
73 virtual void Layout() OVERRIDE; 73 virtual void Layout() OVERRIDE;
74 virtual views::View* GetEventHandlerForPoint( 74 virtual views::View* GetEventHandlerForPoint(
75 const gfx::Point& point) OVERRIDE; 75 const gfx::Point& point) OVERRIDE;
76 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 76 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
77 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 77 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
78 virtual void OnMouseReleased(const views::MouseEvent& event, 78 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
79 bool canceled) OVERRIDE; 79 virtual void OnMouseCaptureLost() OVERRIDE;
80 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; 80 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE;
81 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; 81 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE;
82 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 82 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
83 83
84 protected: 84 protected:
85 virtual void PaintResultViews(gfx::CanvasSkia* canvas); 85 virtual void PaintResultViews(gfx::CanvasSkia* canvas);
86 86
87 // Calculates the height needed to show all the results in the model. 87 // Calculates the height needed to show all the results in the model.
88 virtual int CalculatePopupHeight(); 88 virtual int CalculatePopupHeight();
89 virtual AutocompleteResultView* CreateResultView( 89 virtual AutocompleteResultView* CreateResultView(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // The popup sizes vertically using an animation when the popup is getting 178 // The popup sizes vertically using an animation when the popup is getting
179 // shorter (not larger, that makes it look "slow"). 179 // shorter (not larger, that makes it look "slow").
180 ui::SlideAnimation size_animation_; 180 ui::SlideAnimation size_animation_;
181 gfx::Rect start_bounds_; 181 gfx::Rect start_bounds_;
182 gfx::Rect target_bounds_; 182 gfx::Rect target_bounds_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView); 184 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView);
185 }; 185 };
186 186
187 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW _H_ 187 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698