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

Unified Diff: ash/shell/shell_delegate_impl.cc

Issue 2291913002: Allow the user to cancel the capture region action, and show its active status in the tray. (Closed)
Patch Set: Address comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/test/test_palette_delegate.cc ('k') | ash/utility/screenshot_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/shell_delegate_impl.cc
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index 64313fbdfa2793a52b7204753355073eb7cb9992..60335167d26effc9fe3dc02a7372e7add84569ea 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -92,15 +92,19 @@ class PaletteDelegateImpl : public PaletteDelegate {
}
void CreateNote() override {}
bool HasNoteApp() override { return false; }
+ void OnLaserPointerEnabled() override {}
+ void OnLaserPointerDisabled() override {}
void SetPartialMagnifierState(bool enabled) override {}
void SetStylusStateChangedCallback(
const OnStylusStateChangedCallback& on_stylus_state_changed) override {}
bool ShouldAutoOpenPalette() override { return false; }
bool ShouldShowPalette() override { return false; }
void TakeScreenshot() override {}
- void TakePartialScreenshot() override {}
- void OnLaserPointerEnabled() override {}
- void OnLaserPointerDisabled() override {}
+ void TakePartialScreenshot(const base::Closure& done) override {
+ if (done)
+ done.Run();
+ }
+ void CancelPartialScreenshot() override {}
private:
DISALLOW_COPY_AND_ASSIGN(PaletteDelegateImpl);
« no previous file with comments | « ash/common/test/test_palette_delegate.cc ('k') | ash/utility/screenshot_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698