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

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

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
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 ui::WindowShowState show_state) OVERRIDE {} 77 bool maximized) OVERRIDE {}
78 virtual bool GetSavedWindowPlacement( 78 virtual bool GetSavedWindowBounds(const std::wstring& window_name,
79 const std::wstring& window_name, 79 gfx::Rect* bounds) const OVERRIDE {
80 gfx::Rect* bounds, 80 return false;
81 ui::WindowShowState* show_state) const OVERRIDE { 81 }
82 virtual bool GetSavedMaximizedState(const std::wstring& window_name,
83 bool* maximized) const OVERRIDE {
82 return false; 84 return false;
83 } 85 }
84 86
85 virtual void NotifyAccessibilityEvent( 87 virtual void NotifyAccessibilityEvent(
86 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} 88 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {}
87 virtual void NotifyMenuItemFocused( 89 virtual void NotifyMenuItemFocused(
88 const std::wstring& menu_name, 90 const std::wstring& menu_name,
89 const std::wstring& menu_item_name, 91 const std::wstring& menu_item_name,
90 int item_index, 92 int item_index,
91 int item_count, 93 int item_count,
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 ASSERT_TRUE(menu != NULL); 1575 ASSERT_TRUE(menu != NULL);
1574 ASSERT_TRUE(menu->GetSubmenu()->IsShowing()); 1576 ASSERT_TRUE(menu->GetSubmenu()->IsShowing());
1575 1577
1576 menu->GetMenuController()->CancelAll(); 1578 menu->GetMenuController()->CancelAll();
1577 1579
1578 Done(); 1580 Done();
1579 } 1581 }
1580 }; 1582 };
1581 1583
1582 VIEW_TEST(BookmarkBarViewTest19, SiblingMenu) 1584 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