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

Unified Diff: ash/common/palette_delegate.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/new_window_controller.cc ('k') | ash/common/scoped_root_window_for_new_windows.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/palette_delegate.h
diff --git a/ash/common/palette_delegate.h b/ash/common/palette_delegate.h
deleted file mode 100644
index 9ebfe2422516eb6b1f93abf251c3f954dfd9ef96..0000000000000000000000000000000000000000
--- a/ash/common/palette_delegate.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_PALETTE_DELEGATE_H_
-#define ASH_COMMON_PALETTE_DELEGATE_H_
-
-#include "ash/ash_export.h"
-#include "base/callback.h"
-#include "base/callback_list.h"
-#include "base/macros.h"
-#include "ui/events/devices/stylus_state.h"
-
-namespace ash {
-
-// This delegate allows the UI code in ash, e.g. |PaletteTray|, to perform
-// Chrome-specific actions.
-class PaletteDelegate {
- public:
- using EnableListener = base::Callback<void(bool)>;
- using EnableListenerSubscription =
- base::CallbackList<void(bool)>::Subscription;
-
- virtual ~PaletteDelegate() {}
-
- // Sets callback function that will receive the current state of the palette
- // enabled pref. The callback will be invoked once the initial pref value is
- // available.
- virtual std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
- const EnableListener& on_state_changed) = 0;
-
- // Create a new note.
- virtual void CreateNote() = 0;
-
- // Returns true if there is a note-taking application available.
- virtual bool HasNoteApp() = 0;
-
- // Returns true if the palette should be automatically opened on an eject
- // event.
- virtual bool ShouldAutoOpenPalette() = 0;
-
- // Returns true if the palette should be displayed. This is the one-shot
- // equivalent to AddPaletteEnableListener.
- virtual bool ShouldShowPalette() = 0;
-
- // Take a screenshot of the entire window.
- virtual void TakeScreenshot() = 0;
-
- // Take a screenshot of a user-selected region. |done| is called when the
- // partial screenshot session has finished; a screenshot may or may not have
- // been taken.
- virtual void TakePartialScreenshot(const base::Closure& done) = 0;
-
- // Cancels any active partial screenshot session.
- virtual void CancelPartialScreenshot() = 0;
-
- private:
- DISALLOW_ASSIGN(PaletteDelegate);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_PALETTE_DELEGATE_H_
« no previous file with comments | « ash/common/new_window_controller.cc ('k') | ash/common/scoped_root_window_for_new_windows.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698