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

Side by Side Diff: chrome/browser/ui/views/menu_model_adapter_test.cc

Issue 10081022: Aura/ash split: Remove hacks and get chrome linking without ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move the check to ash/. Created 8 years, 8 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 | « chrome/browser/ui/views/color_chooser_aura.cc ('k') | chrome/chrome_browser.gypi » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/callback.h" 5 #include "base/callback.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/test/base/view_event_test_base.h" 7 #include "chrome/test/base/view_event_test_base.h"
8 #include "chrome/test/base/ui_test_utils.h" 8 #include "chrome/test/base/ui_test_utils.h"
9 #include "ui/base/models/menu_model.h" 9 #include "ui/base/models/menu_model.h"
10 #include "ui/ui_controls/ui_controls.h" 10 #include "ui/ui_controls/ui_controls.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 virtual void ReleaseRef() OVERRIDE { 83 virtual void ReleaseRef() OVERRIDE {
84 } 84 }
85 85
86 // Converts views::Event::flags to a WindowOpenDisposition. 86 // Converts views::Event::flags to a WindowOpenDisposition.
87 virtual int GetDispositionForEvent(int event_flags) OVERRIDE { 87 virtual int GetDispositionForEvent(int event_flags) OVERRIDE {
88 return 0; 88 return 0;
89 } 89 }
90 90
91 #if defined(USE_AURA)
92 virtual views::NativeWidgetHelperAura* CreateNativeWidgetHelper(
93 views::NativeWidgetAura* native_widget) OVERRIDE {
94 return NULL;
95 }
96 #endif
97
91 private: 98 private:
92 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 99 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
93 }; 100 };
94 101
95 // Implement most of the ui::MenuModel pure virtual methods for subclasses 102 // Implement most of the ui::MenuModel pure virtual methods for subclasses
96 // 103 //
97 // Exceptions: 104 // Exceptions:
98 // virtual int GetItemCount() const = 0; 105 // virtual int GetItemCount() const = 0;
99 // virtual ItemType GetTypeAt(int index) const = 0; 106 // virtual ItemType GetTypeAt(int index) const = 0;
100 // virtual int GetCommandIdAt(int index) const = 0; 107 // virtual int GetCommandIdAt(int index) const = 0;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 TestViewsDelegate views_delegate_; 377 TestViewsDelegate views_delegate_;
371 378
372 views::MenuButton* button_; 379 views::MenuButton* button_;
373 TopMenuModel top_menu_model_; 380 TopMenuModel top_menu_model_;
374 views::MenuModelAdapter menu_model_adapter_; 381 views::MenuModelAdapter menu_model_adapter_;
375 views::MenuItemView* menu_; 382 views::MenuItemView* menu_;
376 scoped_ptr<views::MenuRunner> menu_runner_; 383 scoped_ptr<views::MenuRunner> menu_runner_;
377 }; 384 };
378 385
379 VIEW_TEST(MenuModelAdapterTest, RebuildMenu) 386 VIEW_TEST(MenuModelAdapterTest, RebuildMenu)
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/color_chooser_aura.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698