| Index: chrome/browser/ui/views/location_bar/location_bar_container_aura.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc b/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..75ca86787bbc495a1b09b1fc2d5931db36d725e4
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/ui/views/location_bar/location_bar_container.h"
|
| +
|
| +#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
|
| +
|
| +void LocationBarContainer::OnFocus() {
|
| +}
|
| +
|
| +void LocationBarContainer::PlatformInit() {
|
| + view_parent_ = this;
|
| + // Ideally we would turn on layer painting here, but this poses problems with
|
| + // infobar arrows. So, instead we turn on the layer when animating and turn it
|
| + // off when done.
|
| +}
|
| +
|
| +// static
|
| +SkColor LocationBarContainer::GetBackgroundColor() {
|
| + return SK_ColorWHITE;
|
| +}
|
| +
|
| +void LocationBarContainer::StackAtTop() {
|
| + // TODO: this is hack. The problem is NativeViewHostAura does an AddChild(),
|
| + // which places its layer at the top of the stack.
|
| + if (layer())
|
| + layer()->parent()->StackAtTop(layer());
|
| +}
|
|
|