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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc

Issue 7748036: Restoring a session should restore window minimization state on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
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 #include "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/string_number_conversions.h" 6 #include "base/string_number_conversions.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/automation/ui_controls.h" 9 #include "chrome/browser/automation/ui_controls.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 namespace { 67 namespace {
68 68
69 class ViewsDelegateImpl : public views::ViewsDelegate { 69 class ViewsDelegateImpl : public views::ViewsDelegate {
70 public: 70 public:
71 ViewsDelegateImpl() {} 71 ViewsDelegateImpl() {}
72 virtual ui::Clipboard* GetClipboard() const OVERRIDE { return NULL; } 72 virtual ui::Clipboard* GetClipboard() const OVERRIDE { return NULL; }
73 virtual views::View* GetDefaultParentView() OVERRIDE { return NULL; } 73 virtual views::View* GetDefaultParentView() OVERRIDE { return NULL; }
74 virtual void SaveWindowPlacement(const views::Widget* window, 74 virtual void SaveWindowPlacement(const views::Widget* window,
75 const std::wstring& window_name, 75 const std::wstring& window_name,
76 const gfx::Rect& bounds, 76 const gfx::Rect& bounds,
77 bool maximized) OVERRIDE {} 77 ui::WindowShowState show_state) OVERRIDE {}
78 virtual bool GetSavedWindowBounds(const std::wstring& window_name, 78 virtual bool GetSavedWindowPlacement(
79 gfx::Rect* bounds) const OVERRIDE { 79 const std::wstring& window_name,
80 return false; 80 gfx::Rect* bounds,
81 } 81 ui::WindowShowState* show_state) const OVERRIDE {
82 virtual bool GetSavedMaximizedState(const std::wstring& window_name,
83 bool* maximized) const OVERRIDE {
84 return false; 82 return false;
85 } 83 }
86 84
87 virtual void NotifyAccessibilityEvent( 85 virtual void NotifyAccessibilityEvent(
88 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} 86 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {}
89 virtual void NotifyMenuItemFocused( 87 virtual void NotifyMenuItemFocused(
90 const std::wstring& menu_name, 88 const std::wstring& menu_name,
91 const std::wstring& menu_item_name, 89 const std::wstring& menu_item_name,
92 int item_index, 90 int item_index,
93 int item_count, 91 int item_count,
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 ASSERT_TRUE(menu != NULL); 1573 ASSERT_TRUE(menu != NULL);
1576 ASSERT_TRUE(menu->GetSubmenu()->IsShowing()); 1574 ASSERT_TRUE(menu->GetSubmenu()->IsShowing());
1577 1575
1578 menu->GetMenuController()->CancelAll(); 1576 menu->GetMenuController()->CancelAll();
1579 1577
1580 Done(); 1578 Done();
1581 } 1579 }
1582 }; 1580 };
1583 1581
1584 VIEW_TEST(BookmarkBarViewTest19, SiblingMenu) 1582 VIEW_TEST(BookmarkBarViewTest19, SiblingMenu)
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/accessibility_event_router_views_unittest.cc ('k') | chrome/browser/ui/views/chrome_views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698