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

Unified Diff: athena/main/athena_views_delegate.cc

Issue 544953003: Supprot V2 app: step1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « athena/main/athena_views_delegate.h ('k') | chrome/browser/ui/views/athena/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/athena_views_delegate.cc
diff --git a/athena/main/athena_views_delegate.cc b/athena/main/athena_views_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3f30cda33e35af3a88e70c88c49760c34dbbcb2e
--- /dev/null
+++ b/athena/main/athena_views_delegate.cc
@@ -0,0 +1,23 @@
+// Copyright 2014 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 "athena/main/athena_views_delegate.h"
+
+#include "athena/main/athena_frame_view.h"
+#include "athena/screen/public/screen_manager.h"
+
+namespace athena {
+
+void AthenaViewsDelegate::OnBeforeWidgetInit(
+ views::Widget::InitParams* params,
+ views::internal::NativeWidgetDelegate* delegate) {
+ params->context = athena::ScreenManager::Get()->GetContext();
+}
+
+views::NonClientFrameView* AthenaViewsDelegate::CreateDefaultNonClientFrameView(
+ views::Widget* widget) {
+ return new AthenaFrameView(widget);
+}
+
+} // namespace athena
« no previous file with comments | « athena/main/athena_views_delegate.h ('k') | chrome/browser/ui/views/athena/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698