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

Side by Side Diff: ash/shell_unittest.cc

Issue 2133013002: AcceleratorProvider: Make GetAcceleratorForCommandId const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix overrides on Mac and Chrome OS. Created 4 years, 5 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
« no previous file with comments | « ash/shell/context_menu.cc ('k') | ash/sysui/context_menu_mus.h » ('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 "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/common/ash_switches.h" 10 #include "ash/common/ash_switches.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 class SimpleMenuDelegate : public ui::SimpleMenuModel::Delegate { 109 class SimpleMenuDelegate : public ui::SimpleMenuModel::Delegate {
110 public: 110 public:
111 SimpleMenuDelegate() {} 111 SimpleMenuDelegate() {}
112 ~SimpleMenuDelegate() override {} 112 ~SimpleMenuDelegate() override {}
113 113
114 bool IsCommandIdChecked(int command_id) const override { return false; } 114 bool IsCommandIdChecked(int command_id) const override { return false; }
115 115
116 bool IsCommandIdEnabled(int command_id) const override { return true; } 116 bool IsCommandIdEnabled(int command_id) const override { return true; }
117 117
118 bool GetAcceleratorForCommandId(int command_id, 118 bool GetAcceleratorForCommandId(int command_id,
119 ui::Accelerator* accelerator) override { 119 ui::Accelerator* accelerator) const override {
120 return false; 120 return false;
121 } 121 }
122 122
123 void ExecuteCommand(int command_id, int event_flags) override {} 123 void ExecuteCommand(int command_id, int event_flags) override {}
124 124
125 private: 125 private:
126 DISALLOW_COPY_AND_ASSIGN(SimpleMenuDelegate); 126 DISALLOW_COPY_AND_ASSIGN(SimpleMenuDelegate);
127 }; 127 };
128 128
129 } // namespace 129 } // namespace
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 private: 508 private:
509 DISALLOW_COPY_AND_ASSIGN(ShellTest2); 509 DISALLOW_COPY_AND_ASSIGN(ShellTest2);
510 }; 510 };
511 511
512 TEST_F(ShellTest2, DontCrashWhenWindowDeleted) { 512 TEST_F(ShellTest2, DontCrashWhenWindowDeleted) {
513 window_.reset(new aura::Window(NULL)); 513 window_.reset(new aura::Window(NULL));
514 window_->Init(ui::LAYER_NOT_DRAWN); 514 window_->Init(ui::LAYER_NOT_DRAWN);
515 } 515 }
516 516
517 } // namespace ash 517 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/context_menu.cc ('k') | ash/sysui/context_menu_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698