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

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

Issue 543215: Added Star button to compact navigation mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HOST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_HOST_H_ 6 #define CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_HOST_H_
7 7
8 #include "app/animation.h" 8 #include "app/animation.h"
9 #include "app/gfx/native_widget_types.h" 9 #include "app/gfx/native_widget_types.h"
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "chrome/browser/tabs/tab_strip_model.h" 12 #include "chrome/browser/tabs/tab_strip_model.h"
13 #include "chrome/browser/views/dropdown_bar_host.h" 13 #include "chrome/browser/views/dropdown_bar_host.h"
14 #include "views/controls/textfield/textfield.h" 14 #include "views/controls/textfield/textfield.h"
15 15
16 class BrowserView; 16 class BrowserView;
17 class TabContents; 17 class TabContents;
18 class Tab; 18 class Tab;
19 class ToolbarStarToggle;
19 20
20 namespace chromeos { 21 namespace chromeos {
21 22
22 class CompactLocationBarView; 23 class CompactLocationBarView;
23 class MouseObserver; 24 class MouseObserver;
24 25
25 //////////////////////////////////////////////////////////////////////////////// 26 ////////////////////////////////////////////////////////////////////////////////
26 // 27 //
27 // The CompactLocationBarHost implements the container window for the 28 // The CompactLocationBarHost implements the container window for the
28 // floating location bar. It uses the appropriate implementation from 29 // floating location bar. It uses the appropriate implementation from
(...skipping 24 matching lines...) Expand all
53 54
54 // (Re)Starts the popup timer that hides the popup after X seconds. 55 // (Re)Starts the popup timer that hides the popup after X seconds.
55 void StartAutoHideTimer(); 56 void StartAutoHideTimer();
56 57
57 // Cancels the popup timer. 58 // Cancels the popup timer.
58 void CancelAutoHideTimer(); 59 void CancelAutoHideTimer();
59 60
60 // Enable/disable the compact location bar. 61 // Enable/disable the compact location bar.
61 void SetEnabled(bool enabled); 62 void SetEnabled(bool enabled);
62 63
64 // Returns the star button for compact location bar.
65 ToolbarStarToggle* GetStarButton();
66
63 // Overridehden from DropdownBarhost. 67 // Overridehden from DropdownBarhost.
64 virtual void Show(bool animate); 68 virtual void Show(bool animate);
65 virtual void Hide(bool animate); 69 virtual void Hide(bool animate);
66 70
67 // Overridden from views::AcceleratorTarget in DropdownBarHost class. 71 // Overridden from views::AcceleratorTarget in DropdownBarHost class.
68 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); 72 virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
69 73
70 // Overridden from DropdownBarHost class. 74 // Overridden from DropdownBarHost class.
71 virtual gfx::Rect GetDialogPosition(gfx::Rect avoid_overlapping_rect); 75 virtual gfx::Rect GetDialogPosition(gfx::Rect avoid_overlapping_rect);
72 virtual void SetDialogPosition(const gfx::Rect& new_pos, bool no_redraw); 76 virtual void SetDialogPosition(const gfx::Rect& new_pos, bool no_redraw);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 scoped_ptr<base::OneShotTimer<CompactLocationBarHost> > auto_hide_timer_; 108 scoped_ptr<base::OneShotTimer<CompactLocationBarHost> > auto_hide_timer_;
105 109
106 scoped_ptr<MouseObserver> mouse_observer_; 110 scoped_ptr<MouseObserver> mouse_observer_;
107 111
108 DISALLOW_COPY_AND_ASSIGN(CompactLocationBarHost); 112 DISALLOW_COPY_AND_ASSIGN(CompactLocationBarHost);
109 }; 113 };
110 114
111 } // namespace chromeos 115 } // namespace chromeos
112 116
113 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_HOST_H_ 117 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_LOCATION_BAR_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/browser_view.cc ('k') | chrome/browser/chromeos/compact_location_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698