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

Unified Diff: athena/main/athena_views_delegate.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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') | athena/main/debug_accelerator_handler.h » ('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
deleted file mode 100644
index 17dab73d24ef623bf8790e51cb2c13afb6501715..0000000000000000000000000000000000000000
--- a/athena/main/athena_views_delegate.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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"
-#include "ui/views/views_delegate.h"
-
-namespace athena {
-
-namespace {
-
-class AthenaViewsDelegate: public views::ViewsDelegate {
- public:
- AthenaViewsDelegate() {
- }
-
- ~AthenaViewsDelegate() override {}
-
- virtual void OnBeforeWidgetInit(
- views::Widget::InitParams* params,
- views::internal::NativeWidgetDelegate* delegate) override {
- params->context = athena::ScreenManager::Get()->GetContext();
- }
-
- virtual views::NonClientFrameView* CreateDefaultNonClientFrameView(
- views::Widget* widget) override {
- return new AthenaFrameView(widget);
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AthenaViewsDelegate);
-};
-
-} // namespace
-
-void CreateAthenaViewsDelegate() {
- views::ViewsDelegate::views_delegate = new AthenaViewsDelegate;
-}
-
-void ShutdownAthenaViewsDelegate() {
- CHECK(views::ViewsDelegate::views_delegate);
- delete views::ViewsDelegate::views_delegate;
- views::ViewsDelegate::views_delegate = nullptr;
-}
-
-} // namespace athena
« no previous file with comments | « athena/main/athena_views_delegate.h ('k') | athena/main/debug_accelerator_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698