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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 10580039: Adds ability to render omnibox as a view above the page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows Created 8 years, 6 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) 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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 }; 135 };
136 136
137 LocationBarView(Profile* profile, 137 LocationBarView(Profile* profile,
138 CommandUpdater* command_updater, 138 CommandUpdater* command_updater,
139 ToolbarModel* model, 139 ToolbarModel* model,
140 Delegate* delegate, 140 Delegate* delegate,
141 Mode mode); 141 Mode mode);
142 142
143 virtual ~LocationBarView(); 143 virtual ~LocationBarView();
144 144
145 void Init(); 145 // Initializes the LocationBarView. See ToolbarView::Init() for a description
146 // of |popup_parent_view|.
147 void Init(views::View* popup_parent_view);
146 148
147 // True if this instance has been initialized by calling Init, which can only 149 // True if this instance has been initialized by calling Init, which can only
148 // be called when the receiving instance is attached to a view container. 150 // be called when the receiving instance is attached to a view container.
149 bool IsInitialized() const; 151 bool IsInitialized() const;
150 152
151 // Returns the appropriate color for the desired kind, based on the user's 153 // Returns the appropriate color for the desired kind, based on the user's
152 // system theme. 154 // system theme.
153 static SkColor GetColor(ToolbarModel::SecurityLevel security_level, 155 static SkColor GetColor(ToolbarModel::SecurityLevel security_level,
154 ColorKind kind); 156 ColorKind kind);
155 157
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // in the right location. 475 // in the right location.
474 int animation_offset_; 476 int animation_offset_;
475 477
476 // Used to register for notifications received by NotificationObserver. 478 // Used to register for notifications received by NotificationObserver.
477 content::NotificationRegistrar registrar_; 479 content::NotificationRegistrar registrar_;
478 480
479 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 481 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
480 }; 482 };
481 483
482 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 484 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698