Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / ash / test / test_screenshot_delegate.cc
blob7ade6ba6a280589d418911abfdbb952a2c56724e
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/test/test_screenshot_delegate.h"
7 namespace ash {
8 namespace test {
10 TestScreenshotDelegate::TestScreenshotDelegate()
11 : handle_take_screenshot_count_(0),
12 handle_take_partial_screenshot_count_(0),
13 can_take_screenshot_(true) {
16 TestScreenshotDelegate::~TestScreenshotDelegate() {
19 void TestScreenshotDelegate::HandleTakeScreenshotForAllRootWindows() {
20 handle_take_screenshot_count_++;
23 void TestScreenshotDelegate::HandleTakePartialScreenshot(
24 aura::Window* window, const gfx::Rect& rect) {
25 handle_take_partial_screenshot_count_++;
26 last_rect_ = rect;
29 bool TestScreenshotDelegate::CanTakeScreenshot() {
30 return can_take_screenshot_;
33 } // namespace test
34 } // namespace ash