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

Unified Diff: ui/ozone/platform/test/test_window.cc

Issue 1410123003: Rename "test" ozone platform to "headless" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final fix Created 5 years, 1 month 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/ozone/platform/test/test_window.h ('k') | ui/ozone/platform/test/test_window_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/test/test_window.cc
diff --git a/ui/ozone/platform/test/test_window.cc b/ui/ozone/platform/test/test_window.cc
deleted file mode 100644
index 8cbe171ac6ffa0d0bebd28c2da24275302575dd5..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/test/test_window.cc
+++ /dev/null
@@ -1,90 +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 "ui/ozone/platform/test/test_window.h"
-
-#include <string>
-
-#include "base/files/file_path.h"
-#include "base/strings/string_number_conversions.h"
-#include "ui/events/platform/platform_event_source.h"
-#include "ui/ozone/platform/test/test_window_manager.h"
-#include "ui/platform_window/platform_window_delegate.h"
-
-namespace ui {
-
-TestWindow::TestWindow(PlatformWindowDelegate* delegate,
- TestWindowManager* manager,
- const gfx::Rect& bounds)
- : delegate_(delegate), manager_(manager), bounds_(bounds) {
- widget_ = manager_->AddWindow(this);
- delegate_->OnAcceleratedWidgetAvailable(widget_, 1.f);
-}
-
-TestWindow::~TestWindow() {
- manager_->RemoveWindow(widget_, this);
-}
-
-base::FilePath TestWindow::path() {
- base::FilePath base_path = manager_->base_path();
- if (base_path.empty() || base_path == base::FilePath("/dev/null"))
- return base_path;
-
- // Disambiguate multiple window output files with the window id.
- return base_path.Append(base::IntToString(widget_));
-}
-
-gfx::Rect TestWindow::GetBounds() {
- return bounds_;
-}
-
-void TestWindow::SetBounds(const gfx::Rect& bounds) {
- bounds_ = bounds;
- delegate_->OnBoundsChanged(bounds);
-}
-
-void TestWindow::SetTitle(const base::string16& title) {
-}
-
-void TestWindow::Show() {
-}
-
-void TestWindow::Hide() {
-}
-
-void TestWindow::Close() {
-}
-
-void TestWindow::SetCapture() {
-}
-
-void TestWindow::ReleaseCapture() {
-}
-
-void TestWindow::ToggleFullscreen() {
-}
-
-void TestWindow::Maximize() {
-}
-
-void TestWindow::Minimize() {
-}
-
-void TestWindow::Restore() {
-}
-
-void TestWindow::SetCursor(PlatformCursor cursor) {
-}
-
-void TestWindow::MoveCursorTo(const gfx::Point& location) {
-}
-
-void TestWindow::ConfineCursorToBounds(const gfx::Rect& bounds) {
-}
-
-PlatformImeController* TestWindow::GetPlatformImeController() {
- return nullptr;
-}
-
-} // namespace ui
« no previous file with comments | « ui/ozone/platform/test/test_window.h ('k') | ui/ozone/platform/test/test_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698