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

Unified Diff: ui/viewer/viewer_host_win.cc

Issue 10984007: in-chrome viewer for metro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename messages to have metro prefix Created 8 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 | « ui/viewer/viewer_host_win.h ('k') | ui/viewer/viewer_ipc_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/viewer/viewer_host_win.cc
diff --git a/ui/viewer/viewer_host_win.cc b/ui/viewer/viewer_host_win.cc
deleted file mode 100644
index fe21c55cabfe3121172dd10c7050934665617064..0000000000000000000000000000000000000000
--- a/ui/viewer/viewer_host_win.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 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 "ui/viewer/viewer_host_win.h"
-
-#include "ui/aura/client/stacking_client.h"
-#include "ui/aura/display_manager.h"
-#include "ui/aura/env.h"
-#include "ui/aura/focus_manager.h"
-#include "ui/aura/root_window.h"
-#include "ui/aura/shared/root_window_capture_client.h"
-#include "ui/aura/single_display_manager.h"
-
-class ViewerStackingClient : public aura::client::StackingClient {
- public:
- explicit ViewerStackingClient(aura::RootWindow* root_window)
- : root_window_(root_window) {
- aura::client::SetStackingClient(this);
- }
-
- virtual ~ViewerStackingClient() {
- aura::client::SetStackingClient(NULL);
- }
-
- // Overridden from aura::client::StackingClient:
- virtual aura::Window* GetDefaultParent(aura::Window* window,
- const gfx::Rect& bounds) OVERRIDE {
- return root_window_;
- }
-
- private:
- aura::RootWindow* root_window_;
-
- scoped_ptr<aura::shared::RootWindowCaptureClient> capture_client_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewerStackingClient);
-};
-
-ViewerHostWin::ViewerHostWin() {
- aura::DisplayManager::set_use_fullscreen_host_window(true);
- aura::Env::GetInstance()->SetDisplayManager(new aura::SingleDisplayManager);
- root_window_.reset(aura::DisplayManager::CreateRootWindowForPrimaryDisplay());
- root_window_capture_client_.reset(
- new aura::shared::RootWindowCaptureClient(root_window_.get()));
- focus_manager_.reset(new aura::FocusManager);
- root_window_->set_focus_manager(focus_manager_.get());
- stacking_client_.reset(new ViewerStackingClient(root_window_.get()));
- root_window_->ShowRootWindow();
-}
-
-ViewerHostWin::~ViewerHostWin() {
-}
« no previous file with comments | « ui/viewer/viewer_host_win.h ('k') | ui/viewer/viewer_ipc_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698