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

Side by Side Diff: ash/screenshot_delegate.h

Issue 10693135: Remove #pragma once from ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ash/screensaver/screensaver_view.h ('k') | ash/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef ASH_SCREENSHOT_DELEGATE_H_ 5 #ifndef ASH_SCREENSHOT_DELEGATE_H_
6 #define ASH_SCREENSHOT_DELEGATE_H_ 6 #define ASH_SCREENSHOT_DELEGATE_H_
7 #pragma once
8 7
9 namespace aura { 8 namespace aura {
10 class Window; 9 class Window;
11 } // namespace aura 10 } // namespace aura
12 11
13 namespace gfx { 12 namespace gfx {
14 class Rect; 13 class Rect;
15 } // namespace gfx 14 } // namespace gfx
16 15
17 namespace ash { 16 namespace ash {
18 17
19 // Delegate for taking screenshots. 18 // Delegate for taking screenshots.
20 class ScreenshotDelegate { 19 class ScreenshotDelegate {
21 public: 20 public:
22 virtual ~ScreenshotDelegate() {} 21 virtual ~ScreenshotDelegate() {}
23 22
24 // The actual task of taking a screenshot for the given window. 23 // The actual task of taking a screenshot for the given window.
25 // This method is called when the user wants to take a screenshot 24 // This method is called when the user wants to take a screenshot
26 // manually. 25 // manually.
27 virtual void HandleTakeScreenshot(aura::Window* window) = 0; 26 virtual void HandleTakeScreenshot(aura::Window* window) = 0;
28 27
29 // The actual task of taking a partial screenshot for the given 28 // The actual task of taking a partial screenshot for the given
30 // window. 29 // window.
31 virtual void HandleTakePartialScreenshot( 30 virtual void HandleTakePartialScreenshot(
32 aura::Window* window, const gfx::Rect& rect) = 0; 31 aura::Window* window, const gfx::Rect& rect) = 0;
33 }; 32 };
34 } // namespace ash 33 } // namespace ash
35 34
36 #endif // ASH_SCREENSHOT_DELEGATE_H_ 35 #endif // ASH_SCREENSHOT_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/screensaver/screensaver_view.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698