OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COMPACT_NAVIGATION_BAR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 10 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
11 #include "chrome/browser/bubble_positioner.h" | 11 #include "chrome/browser/bubble_positioner.h" |
12 #include "views/controls/button/button.h" | 12 #include "views/controls/button/button.h" |
13 #include "views/view.h" | 13 #include "views/view.h" |
14 | 14 |
15 class AutocompleteEditViewGtk; | 15 class AutocompleteEditViewGtk; |
16 class Browser; | 16 class Browser; |
17 | 17 |
18 namespace views { | 18 namespace views { |
19 class ImageButton; | 19 class ImageButton; |
20 class ImageView; | 20 class ImageView; |
21 class NativeViewHost; | 21 class NativeViewHost; |
22 } | 22 } |
23 | 23 |
| 24 namespace chromeos { |
| 25 |
24 // This class provides a small navigation bar that includes back, forward, and | 26 // This class provides a small navigation bar that includes back, forward, and |
25 // a small text entry box. | 27 // a small text entry box. |
26 class CompactNavigationBar : public views::View, | 28 class CompactNavigationBar : public views::View, |
27 public views::ButtonListener, | 29 public views::ButtonListener, |
28 public AutocompleteEditController, | 30 public AutocompleteEditController, |
29 public BubblePositioner { | 31 public BubblePositioner { |
30 public: | 32 public: |
31 explicit CompactNavigationBar(Browser* browser); | 33 explicit CompactNavigationBar(Browser* browser); |
32 virtual ~CompactNavigationBar(); | 34 virtual ~CompactNavigationBar(); |
33 | 35 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 views::ImageButton* back_button_; | 70 views::ImageButton* back_button_; |
69 views::ImageView* bf_separator_; | 71 views::ImageView* bf_separator_; |
70 views::ImageButton* forward_button_; | 72 views::ImageButton* forward_button_; |
71 | 73 |
72 scoped_ptr<AutocompleteEditViewGtk> location_entry_; | 74 scoped_ptr<AutocompleteEditViewGtk> location_entry_; |
73 views::NativeViewHost* location_entry_view_; | 75 views::NativeViewHost* location_entry_view_; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(CompactNavigationBar); | 77 DISALLOW_COPY_AND_ASSIGN(CompactNavigationBar); |
76 }; | 78 }; |
77 | 79 |
| 80 } // namespace chromeos |
| 81 |
78 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ | 82 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ |
OLD | NEW |