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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
6 #define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "build/build_config.h"
12 #include "ui/base/accessibility/accessibility_types.h"
13 #include "views/views_delegate.h"
14
15 namespace ui {
16 class Clipboard;
17 }
18
19 namespace views {
20 class View;
21 class Widget;
22
23 class TestViewsDelegate : public ViewsDelegate {
24 public:
25 TestViewsDelegate();
26 virtual ~TestViewsDelegate();
27
28 void set_default_parent_view(View* view) {
29 default_parent_view_ = view;
30 }
31
32 // Overridden from ViewsDelegate:
33 virtual ui::Clipboard* GetClipboard() const OVERRIDE;
34 virtual View* GetDefaultParentView() OVERRIDE;
35 virtual void SaveWindowPlacement(const Widget* window,
36 const std::string& window_name,
37 const gfx::Rect& bounds,
38 ui::WindowShowState show_state) OVERRIDE;
39 virtual bool GetSavedWindowPlacement(
40 const std::string& window_name,
41 gfx::Rect* bounds,
42 ui::WindowShowState* show_state) const OVERRIDE;
43
44 virtual void NotifyAccessibilityEvent(
45 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {}
46
47 virtual void NotifyMenuItemFocused(const string16& menu_name,
48 const string16& menu_item_name,
49 int item_index,
50 int item_count,
51 bool has_submenu) OVERRIDE {}
52 #if defined(OS_WIN)
53 virtual HICON GetDefaultWindowIcon() const OVERRIDE {
54 return NULL;
55 }
56 #endif
57
58 virtual void AddRef() OVERRIDE {}
59 virtual void ReleaseRef() OVERRIDE {}
60
61 virtual int GetDispositionForEvent(int event_flags) OVERRIDE;
62
63 private:
64 View* default_parent_view_;
65 mutable scoped_ptr<ui::Clipboard> clipboard_;
66
67 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
68 };
69
70 } // namespace views
71
72 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW
« 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