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

Side by Side Diff: ui/aura/root_window.h

Issue 10386124: Introduce XGetImage() for GrabWindowSnapshot() in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 | « chrome/browser/ui/window_snapshot/window_snapshot_aura.cc ('k') | ui/aura/root_window.cc » ('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 UI_AURA_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector>
10
9 #include "base/basictypes.h" 11 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop.h" 15 #include "base/message_loop.h"
14 #include "ui/aura/aura_export.h" 16 #include "ui/aura/aura_export.h"
15 #include "ui/aura/focus_manager.h" 17 #include "ui/aura/focus_manager.h"
16 #include "ui/aura/window.h" 18 #include "ui/aura/window.h"
17 #include "ui/base/cursor/cursor.h" 19 #include "ui/base/cursor/cursor.h"
18 #include "ui/base/events.h" 20 #include "ui/base/events.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // release before we resume normal operation. 236 // release before we resume normal operation.
235 void HoldMouseMoves(); 237 void HoldMouseMoves();
236 void ReleaseMouseMoves(); 238 void ReleaseMouseMoves();
237 239
238 // Creates a compositor lock. 240 // Creates a compositor lock.
239 scoped_refptr<CompositorLock> GetCompositorLock(); 241 scoped_refptr<CompositorLock> GetCompositorLock();
240 242
241 // Sets if the window should be focused when shown. 243 // Sets if the window should be focused when shown.
242 void SetFocusWhenShown(bool focus_when_shown); 244 void SetFocusWhenShown(bool focus_when_shown);
243 245
246 // Grabs the snapshot of the root window by using the platform-dependent APIs.
247 bool GrabSnapshot(const gfx::Rect& snapshot_bounds,
248 std::vector<unsigned char>* png_representation);
249
244 // Overridden from Window: 250 // Overridden from Window:
245 virtual RootWindow* GetRootWindow() OVERRIDE; 251 virtual RootWindow* GetRootWindow() OVERRIDE;
246 virtual const RootWindow* GetRootWindow() const OVERRIDE; 252 virtual const RootWindow* GetRootWindow() const OVERRIDE;
247 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; 253 virtual void SetTransform(const ui::Transform& transform) OVERRIDE;
248 254
249 // Overridden from ui::CompositorDelegate: 255 // Overridden from ui::CompositorDelegate:
250 virtual void ScheduleDraw() OVERRIDE; 256 virtual void ScheduleDraw() OVERRIDE;
251 257
252 // Overridden from ui::CompositorObserver: 258 // Overridden from ui::CompositorObserver:
253 virtual void OnCompositingStarted(ui::Compositor*) OVERRIDE; 259 virtual void OnCompositingStarted(ui::Compositor*) OVERRIDE;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 bool draw_on_compositor_unlock_; 403 bool draw_on_compositor_unlock_;
398 404
399 int draw_trace_count_; 405 int draw_trace_count_;
400 406
401 DISALLOW_COPY_AND_ASSIGN(RootWindow); 407 DISALLOW_COPY_AND_ASSIGN(RootWindow);
402 }; 408 };
403 409
404 } // namespace aura 410 } // namespace aura
405 411
406 #endif // UI_AURA_ROOT_WINDOW_H_ 412 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/window_snapshot/window_snapshot_aura.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698