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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_container_aura.cc

Issue 10630013: Adds LocationBarContainer that contains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove set_view_to_focus 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/location_bar/location_bar_container.h"
6
7 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
8
9 void LocationBarContainer::OnFocus() {
10 }
11
12 void LocationBarContainer::PlatformInit() {
13 view_parent_ = this;
14 // Ideally we would turn on layer painting here, but this poses problems with
15 // infobar arrows. So, instead we turn on the layer when animating and turn it
16 // off when done.
17 }
18
19 // static
20 SkColor LocationBarContainer::GetBackgroundColor() {
21 return SK_ColorWHITE;
22 }
23
24 void LocationBarContainer::StackAtTop() {
25 // TODO: this is hack. The problem is NativeViewHostAura does an AddChild(),
26 // which places its layer at the top of the stack.
27 if (layer())
28 layer()->parent()->StackAtTop(layer());
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698