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

Unified Diff: views/test/test_views_delegate.cc

Issue 8581003: views: Move ime and test directories to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux Created 9 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 | « views/test/test_views_delegate.h ('k') | views/test/views_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/test/test_views_delegate.cc
diff --git a/views/test/test_views_delegate.cc b/views/test/test_views_delegate.cc
deleted file mode 100644
index 3b1bd3be767f1bef039c098ff3c720974765d9fb..0000000000000000000000000000000000000000
--- a/views/test/test_views_delegate.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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 "views/test/test_views_delegate.h"
-
-#include "base/logging.h"
-#include "ui/base/clipboard/clipboard.h"
-
-namespace views {
-
-TestViewsDelegate::TestViewsDelegate()
- : default_parent_view_(NULL) {
- DCHECK(!ViewsDelegate::views_delegate);
- ViewsDelegate::views_delegate = this;
-}
-
-TestViewsDelegate::~TestViewsDelegate() {
- ViewsDelegate::views_delegate = NULL;
-}
-
-ui::Clipboard* TestViewsDelegate::GetClipboard() const {
- if (!clipboard_.get()) {
- // Note that we need a MessageLoop for the next call to work.
- clipboard_.reset(new ui::Clipboard);
- }
- return clipboard_.get();
-}
-
-View* TestViewsDelegate::GetDefaultParentView() {
- return default_parent_view_;
-}
-
-void TestViewsDelegate::SaveWindowPlacement(const Widget* window,
- const std::string& window_name,
- const gfx::Rect& bounds,
- ui::WindowShowState show_state) {
-}
-
-bool TestViewsDelegate::GetSavedWindowPlacement(
- const std::string& window_name,
- gfx::Rect* bounds,
- ui:: WindowShowState* show_state) const {
- return false;
-}
-
-int TestViewsDelegate::GetDispositionForEvent(int event_flags) {
- return 0;
-}
-
-} // namespace views
« no previous file with comments | « views/test/test_views_delegate.h ('k') | views/test/views_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698