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

Side by Side Diff: chrome/browser/chromeos/compact_location_bar.h

Issue 341044: Move chromeos code to namespace chromeos. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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) 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_LOCATION_BAR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_H_
6 #define CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_H_ 6 #define CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "chrome/browser/bubble_positioner.h" 10 #include "chrome/browser/bubble_positioner.h"
11 #include "chrome/browser/autocomplete/autocomplete_edit.h" 11 #include "chrome/browser/autocomplete/autocomplete_edit.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 class BrowserView; 17 class BrowserView;
18 class ToolbarStarToggleGtk; 18 class ToolbarStarToggleGtk;
19 class Tab; 19 class Tab;
20 class TabContents; 20 class TabContents;
21 class TabStrip; 21 class TabStrip;
22 22
23 namespace views { 23 namespace views {
24 class ImageButton; 24 class ImageButton;
25 class NativeViewHost; 25 class NativeViewHost;
26 } // namespace views 26 } // namespace views
27 27
28 namespace chromeos {
29
28 // CompactLocationBar is a version of location bar that is shown under 30 // CompactLocationBar is a version of location bar that is shown under
29 // a tab for short priod of used when Chrome is in the compact 31 // a tab for short priod of used when Chrome is in the compact
30 // navigation bar mode. 32 // navigation bar mode.
31 // TODO(oshima): re-implement w/o using a popup, like a FindBar. 33 // TODO(oshima): re-implement w/o using a popup, like a FindBar.
32 class CompactLocationBar : public views::View, 34 class CompactLocationBar : public views::View,
33 public views::ButtonListener, 35 public views::ButtonListener,
34 public AutocompleteEditController, 36 public AutocompleteEditController,
35 public BubblePositioner { 37 public BubblePositioner {
36 public: 38 public:
37 explicit CompactLocationBar(BrowserView* browser_view); 39 explicit CompactLocationBar(BrowserView* browser_view);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 views::NativeViewHost* star_view_; 102 views::NativeViewHost* star_view_;
101 103
102 scoped_ptr<base::OneShotTimer<CompactLocationBar> > popup_timer_; 104 scoped_ptr<base::OneShotTimer<CompactLocationBar> > popup_timer_;
103 105
104 // A popup window to show the compact location bar. 106 // A popup window to show the compact location bar.
105 views::Widget* popup_; 107 views::Widget* popup_;
106 108
107 DISALLOW_COPY_AND_ASSIGN(CompactLocationBar); 109 DISALLOW_COPY_AND_ASSIGN(CompactLocationBar);
108 }; 110 };
109 111
112 } // namespace chromeos
113
110 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_H_ 114 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_H_
111 115
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698