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

Unified Diff: ash/accelerators/accelerator_controller.h

Issue 9240002: Change the signature of SetScreenshotDelegate() to show ownership transfer more clearly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 11 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 | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.h
diff --git a/ash/accelerators/accelerator_controller.h b/ash/accelerators/accelerator_controller.h
index 8d2d61fe34885ffe809b39f6be7bcc1b6f5bf863..b121807e7f194a2e559980b8c91dd5c410ef13ac 100644
--- a/ash/accelerators/accelerator_controller.h
+++ b/ash/accelerators/accelerator_controller.h
@@ -56,7 +56,8 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
virtual bool CanHandleAccelerators() const OVERRIDE;
- void SetScreenshotDelegate(ScreenshotDelegate* screenshot_delegate);
+ void SetScreenshotDelegate(
+ scoped_ptr<ScreenshotDelegate> screenshot_delegate);
void SetCapsLockDelegate(scoped_ptr<CapsLockDelegate> caps_lock_delegate);
private:
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698