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

Unified 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 side-by-side diff with in-line comments
Download patch
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());
+}

Powered by Google App Engine
This is Rietveld 408576698