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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_aura.cc

Issue 7841012: Get chrome to link with USE_AURA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/frame/browser_frame_aura.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_frame_aura.cc (revision 0)
+++ chrome/browser/ui/views/frame/browser_frame_aura.cc (revision 0)
@@ -0,0 +1,64 @@
+// Copyright (c) 2011 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/frame/browser_frame_aura.h"
+
+#include "ui/gfx/font.h"
+
+///////////////////////////////////////////////////////////////////////////////
+// BrowserFrameAura, public:
+
+BrowserFrameAura::BrowserFrameAura(BrowserFrame* browser_frame,
+ BrowserView* browser_view)
+ : views::NativeWidgetAura(browser_frame),
+ browser_view_(browser_view),
+ browser_frame_(browser_frame) {
+}
+
+BrowserFrameAura::~BrowserFrameAura() {
+}
+
+///////////////////////////////////////////////////////////////////////////////
+// BrowserFrameAura, views::NativeWidgetAura overrides:
+
+////////////////////////////////////////////////////////////////////////////////
+// BrowserFrameAura, NativeBrowserFrame implementation:
+
+views::NativeWidget* BrowserFrameAura::AsNativeWidget() {
+ return this;
+}
+
+const views::NativeWidget* BrowserFrameAura::AsNativeWidget() const {
+ return this;
+}
+
+int BrowserFrameAura::GetMinimizeButtonOffset() const {
+ // TODO(beng):
+ NOTIMPLEMENTED();
+ return 0;
+}
+
+void BrowserFrameAura::TabStripDisplayModeChanged() {
+ // TODO(beng):
+ NOTIMPLEMENTED();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// BrowserFrame, public:
+
+// static
+const gfx::Font& BrowserFrame::GetTitleFont() {
+ static gfx::Font* title_font = new gfx::Font;
+ return *title_font;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// NativeBrowserFrame, public:
+
+// static
+NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame(
+ BrowserFrame* browser_frame,
+ BrowserView* browser_view) {
+ return new BrowserFrameAura(browser_frame, browser_view);
+}
Property changes on: chrome\browser\ui\views\frame\browser_frame_aura.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_aura.h ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698