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

Unified Diff: views/test/test_views_delegate.h

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/ime/text_input_type_tracker.cc ('k') | views/test/test_views_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/test/test_views_delegate.h
diff --git a/views/test/test_views_delegate.h b/views/test/test_views_delegate.h
deleted file mode 100644
index 18e7da0b4778f888fab839083130f683c4100449..0000000000000000000000000000000000000000
--- a/views/test/test_views_delegate.h
+++ /dev/null
@@ -1,72 +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.
-
-#ifndef VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
-#define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "build/build_config.h"
-#include "ui/base/accessibility/accessibility_types.h"
-#include "views/views_delegate.h"
-
-namespace ui {
-class Clipboard;
-}
-
-namespace views {
-class View;
-class Widget;
-
-class TestViewsDelegate : public ViewsDelegate {
- public:
- TestViewsDelegate();
- virtual ~TestViewsDelegate();
-
- void set_default_parent_view(View* view) {
- default_parent_view_ = view;
- }
-
- // Overridden from ViewsDelegate:
- virtual ui::Clipboard* GetClipboard() const OVERRIDE;
- virtual View* GetDefaultParentView() OVERRIDE;
- virtual void SaveWindowPlacement(const Widget* window,
- const std::string& window_name,
- const gfx::Rect& bounds,
- ui::WindowShowState show_state) OVERRIDE;
- virtual bool GetSavedWindowPlacement(
- const std::string& window_name,
- gfx::Rect* bounds,
- ui::WindowShowState* show_state) const OVERRIDE;
-
- virtual void NotifyAccessibilityEvent(
- View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {}
-
- virtual void NotifyMenuItemFocused(const string16& menu_name,
- const string16& menu_item_name,
- int item_index,
- int item_count,
- bool has_submenu) OVERRIDE {}
-#if defined(OS_WIN)
- virtual HICON GetDefaultWindowIcon() const OVERRIDE {
- return NULL;
- }
-#endif
-
- virtual void AddRef() OVERRIDE {}
- virtual void ReleaseRef() OVERRIDE {}
-
- virtual int GetDispositionForEvent(int event_flags) OVERRIDE;
-
- private:
- View* default_parent_view_;
- mutable scoped_ptr<ui::Clipboard> clipboard_;
-
- DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
-};
-
-} // namespace views
-
-#endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
« no previous file with comments | « views/ime/text_input_type_tracker.cc ('k') | views/test/test_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698