OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" | 10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 bool IsOpen() const override; | 44 bool IsOpen() const override; |
45 void InvalidateLine(size_t line) override; | 45 void InvalidateLine(size_t line) override; |
46 void UpdatePopupAppearance() override; | 46 void UpdatePopupAppearance() override; |
47 gfx::Rect GetTargetBounds() override; | 47 gfx::Rect GetTargetBounds() override; |
48 void PaintUpdatesNow() override; | 48 void PaintUpdatesNow() override; |
49 void OnDragCanceled() override; | 49 void OnDragCanceled() override; |
50 | 50 |
51 // Overridden from gfx::AnimationDelegate: | 51 // Overridden from gfx::AnimationDelegate: |
52 void AnimationProgressed(const gfx::Animation* animation) override; | 52 void AnimationProgressed(const gfx::Animation* animation) override; |
53 | 53 |
54 // Overridden from views::View: | 54 // Overridden from views::View: |
Peter Kasting
2015/01/23 07:28:10
Nit: You're welcome, but not obligated, to remove
oshima
2015/01/24 01:23:07
Done.
| |
55 void Layout() override; | 55 void Layout() override; |
56 const char* GetClassName() const override; | |
56 views::View* GetTooltipHandlerForPoint(const gfx::Point& point) override; | 57 views::View* GetTooltipHandlerForPoint(const gfx::Point& point) override; |
57 bool OnMousePressed(const ui::MouseEvent& event) override; | 58 bool OnMousePressed(const ui::MouseEvent& event) override; |
58 bool OnMouseDragged(const ui::MouseEvent& event) override; | 59 bool OnMouseDragged(const ui::MouseEvent& event) override; |
59 void OnMouseReleased(const ui::MouseEvent& event) override; | 60 void OnMouseReleased(const ui::MouseEvent& event) override; |
60 void OnMouseCaptureLost() override; | 61 void OnMouseCaptureLost() override; |
61 void OnMouseMoved(const ui::MouseEvent& event) override; | 62 void OnMouseMoved(const ui::MouseEvent& event) override; |
62 void OnMouseEntered(const ui::MouseEvent& event) override; | 63 void OnMouseEntered(const ui::MouseEvent& event) override; |
63 void OnMouseExited(const ui::MouseEvent& event) override; | 64 void OnMouseExited(const ui::MouseEvent& event) override; |
64 | 65 |
65 // Overridden from ui::EventHandler: | 66 // Overridden from ui::EventHandler: |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 | 176 |
176 // When the dropdown is not wide enough while displaying postfix suggestions, | 177 // When the dropdown is not wide enough while displaying postfix suggestions, |
177 // we use the width of widest match contents to shift the suggestions so that | 178 // we use the width of widest match contents to shift the suggestions so that |
178 // the widest suggestion just reaches the end edge. | 179 // the widest suggestion just reaches the end edge. |
179 int max_match_contents_width_; | 180 int max_match_contents_width_; |
180 | 181 |
181 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); | 182 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); |
182 }; | 183 }; |
183 | 184 |
184 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 185 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
OLD | NEW |