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

Side by Side Diff: ash/common/test/test_palette_delegate.cc

Issue 2234203002: Auto open and close the palette on an eject event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-note
Patch Set: Make PaletteDelegate pure virtual once more Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/common/test/test_palette_delegate.h" 5 #include "ash/common/test/test_palette_delegate.h"
6 6
7 namespace ash { 7 namespace ash {
8 8
9 TestPaletteDelegate::TestPaletteDelegate() {} 9 TestPaletteDelegate::TestPaletteDelegate() {}
10 10
11 TestPaletteDelegate::~TestPaletteDelegate() {} 11 TestPaletteDelegate::~TestPaletteDelegate() {}
12 12
13 void TestPaletteDelegate::CreateNote() { 13 void TestPaletteDelegate::CreateNote() {
14 ++create_note_count_; 14 ++create_note_count_;
15 } 15 }
16 16
17 bool TestPaletteDelegate::HasNoteApp() { 17 bool TestPaletteDelegate::HasNoteApp() {
18 ++has_note_app_count_; 18 ++has_note_app_count_;
19 return has_note_app_; 19 return has_note_app_;
20 } 20 }
21 21
22 void TestPaletteDelegate::SetPartialMagnifierState(bool enabled) { 22 void TestPaletteDelegate::SetPartialMagnifierState(bool enabled) {
23 partial_magnifier_state_ = enabled; 23 partial_magnifier_state_ = enabled;
24 } 24 }
25 25
26 void TestPaletteDelegate::SetStylusStateChangedCallback(
27 const PaletteDelegate::OnStylusStateChangedCallback&
28 on_stylus_state_changed) {}
29
30 bool TestPaletteDelegate::ShouldAutoOpenPalette() {
31 return should_auto_open_palette_;
32 }
33
26 void TestPaletteDelegate::TakeScreenshot() { 34 void TestPaletteDelegate::TakeScreenshot() {
27 ++take_screenshot_count_; 35 ++take_screenshot_count_;
28 } 36 }
29 37
30 void TestPaletteDelegate::TakePartialScreenshot() { 38 void TestPaletteDelegate::TakePartialScreenshot() {
31 ++take_partial_screenshot_count_; 39 ++take_partial_screenshot_count_;
32 } 40 }
33 41
34 } // namespace ash 42 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698