| OLD | NEW |
| (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 } |
| OLD | NEW |