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

Side by Side Diff: ui/views/touchui/touch_selection_controller_impl_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 | « ui/views/examples/tree_view_example.cc ('k') | no next file » | 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "ui/aura/client/screen_position_client.h" 10 #include "ui/aura/client/screen_position_client.h"
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // Overridden from ui::SimpleMenuModel::Delegate. 681 // Overridden from ui::SimpleMenuModel::Delegate.
682 bool IsCommandIdChecked(int command_id) const override { 682 bool IsCommandIdChecked(int command_id) const override {
683 NOTREACHED(); 683 NOTREACHED();
684 return false; 684 return false;
685 } 685 }
686 bool IsCommandIdEnabled(int command_id) const override { 686 bool IsCommandIdEnabled(int command_id) const override {
687 NOTREACHED(); 687 NOTREACHED();
688 return false; 688 return false;
689 } 689 }
690 bool GetAcceleratorForCommandId(int command_id, 690 bool GetAcceleratorForCommandId(int command_id,
691 ui::Accelerator* accelerator) override { 691 ui::Accelerator* accelerator) const override {
692 NOTREACHED(); 692 NOTREACHED();
693 return false; 693 return false;
694 } 694 }
695 void ExecuteCommand(int command_id, int event_flags) override { 695 void ExecuteCommand(int command_id, int event_flags) override {
696 NOTREACHED(); 696 NOTREACHED();
697 } 697 }
698 698
699 aura::Window* window_; 699 aura::Window* window_;
700 700
701 // Boundaries of the client view. 701 // Boundaries of the client view.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 // Start touch editing; then press a key and ensure it deactivates touch 868 // Start touch editing; then press a key and ensure it deactivates touch
869 // selection. 869 // selection.
870 StartTouchEditing(); 870 StartTouchEditing();
871 EXPECT_TRUE(GetSelectionController()); 871 EXPECT_TRUE(GetSelectionController());
872 generator.PressKey(ui::VKEY_A, 0); 872 generator.PressKey(ui::VKEY_A, 0);
873 RunPendingMessages(); 873 RunPendingMessages();
874 EXPECT_FALSE(GetSelectionController()); 874 EXPECT_FALSE(GetSelectionController());
875 } 875 }
876 876
877 } // namespace views 877 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/examples/tree_view_example.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698