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

Side by Side Diff: views/test/test_views_delegate.h

Issue 7790010: Revert 98679 - Restoring a session should restore window minimization state on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/desktop/desktop_window_view.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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 5 #ifndef VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
6 #define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 6 #define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 void set_default_parent_view(View* view) { 28 void set_default_parent_view(View* view) {
29 default_parent_view_ = view; 29 default_parent_view_ = view;
30 } 30 }
31 31
32 // Overridden from ViewsDelegate: 32 // Overridden from ViewsDelegate:
33 virtual ui::Clipboard* GetClipboard() const OVERRIDE; 33 virtual ui::Clipboard* GetClipboard() const OVERRIDE;
34 virtual View* GetDefaultParentView() OVERRIDE; 34 virtual View* GetDefaultParentView() OVERRIDE;
35 virtual void SaveWindowPlacement(const Widget* window, 35 virtual void SaveWindowPlacement(const Widget* window,
36 const std::wstring& window_name, 36 const std::wstring& window_name,
37 const gfx::Rect& bounds, 37 const gfx::Rect& bounds,
38 ui::WindowShowState show_state) OVERRIDE; 38 bool maximized) OVERRIDE {}
39 virtual bool GetSavedWindowPlacement( 39 virtual bool GetSavedWindowBounds(const std::wstring& window_name,
40 const std::wstring& window_name, 40 gfx::Rect* bounds) const OVERRIDE;
41 gfx::Rect* bounds, 41
42 ui::WindowShowState* show_state) const OVERRIDE; 42 virtual bool GetSavedMaximizedState(const std::wstring& window_name,
43 bool* maximized) const OVERRIDE;
43 44
44 virtual void NotifyAccessibilityEvent( 45 virtual void NotifyAccessibilityEvent(
45 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} 46 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {}
46 47
47 virtual void NotifyMenuItemFocused( 48 virtual void NotifyMenuItemFocused(
48 const std::wstring& menu_name, 49 const std::wstring& menu_name,
49 const std::wstring& menu_item_name, 50 const std::wstring& menu_item_name,
50 int item_index, 51 int item_index,
51 int item_count, 52 int item_count,
52 bool has_submenu) OVERRIDE {} 53 bool has_submenu) OVERRIDE {}
(...skipping 11 matching lines...) Expand all
64 private: 65 private:
65 View* default_parent_view_; 66 View* default_parent_view_;
66 mutable scoped_ptr<ui::Clipboard> clipboard_; 67 mutable scoped_ptr<ui::Clipboard> clipboard_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 69 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
69 }; 70 };
70 71
71 } // namespace views 72 } // namespace views
72 73
73 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 74 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/desktop/desktop_window_view.cc ('k') | views/test/test_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698