OLD | NEW |
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_DROPDOWN_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/views/dropdown_bar_host.h" | 9 #include "chrome/browser/ui/views/dropdown_bar_host.h" |
10 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" | 10 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" |
11 #include "views/accessible_pane_view.h" | 11 #include "ui/views/accessible_pane_view.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Canvas; | 14 class Canvas; |
15 } // namespace gfx | 15 } // namespace gfx |
16 | 16 |
17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
18 // | 18 // |
19 // The DropdownBarView is an abstract view to draw the UI controls of the | 19 // The DropdownBarView is an abstract view to draw the UI controls of the |
20 // DropdownBarHost. | 20 // DropdownBarHost. |
21 // | 21 // |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // While animating, the host clips the widget and draws only the bottom | 65 // While animating, the host clips the widget and draws only the bottom |
66 // part of it. The view needs to know the pixel offset at which we are drawing | 66 // part of it. The view needs to know the pixel offset at which we are drawing |
67 // the widget so that we can draw the curved edges that attach to the toolbar | 67 // the widget so that we can draw the curved edges that attach to the toolbar |
68 // in the right location. | 68 // in the right location. |
69 int animation_offset_; | 69 int animation_offset_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(DropdownBarView); | 71 DISALLOW_COPY_AND_ASSIGN(DropdownBarView); |
72 }; | 72 }; |
73 | 73 |
74 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ | 74 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ |
OLD | NEW |