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

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: 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
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // release before we resume normal operation. 243 // release before we resume normal operation.
242 void HoldMouseMoves(); 244 void HoldMouseMoves();
243 void ReleaseMouseMoves(); 245 void ReleaseMouseMoves();
244 246
245 // Creates a compositor lock. 247 // Creates a compositor lock.
246 scoped_refptr<CompositorLock> GetCompositorLock(); 248 scoped_refptr<CompositorLock> GetCompositorLock();
247 249
248 // Sets if the window should be focused when shown. 250 // Sets if the window should be focused when shown.
249 void SetFocusWhenShown(bool focus_when_shown); 251 void SetFocusWhenShown(bool focus_when_shown);
250 252
253 bool GrabWindowSnapshot(std::vector<unsigned char>* png_representation,
Daniel Erat 2012/05/14 23:17:40 nit: Add a comment describing what this does. Sho
Jun Mukai 2012/05/15 22:39:24 Done.
254 const gfx::Rect& snapshot_bounds);
255
251 // Overridden from Window: 256 // Overridden from Window:
252 virtual RootWindow* GetRootWindow() OVERRIDE; 257 virtual RootWindow* GetRootWindow() OVERRIDE;
253 virtual const RootWindow* GetRootWindow() const OVERRIDE; 258 virtual const RootWindow* GetRootWindow() const OVERRIDE;
254 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; 259 virtual void SetTransform(const ui::Transform& transform) OVERRIDE;
255 260
256 // Overridden from ui::CompositorDelegate: 261 // Overridden from ui::CompositorDelegate:
257 virtual void ScheduleDraw() OVERRIDE; 262 virtual void ScheduleDraw() OVERRIDE;
258 263
259 // Overridden from ui::CompositorObserver: 264 // Overridden from ui::CompositorObserver:
260 virtual void OnCompositingStarted(ui::Compositor*) OVERRIDE; 265 virtual void OnCompositingStarted(ui::Compositor*) OVERRIDE;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 bool draw_on_compositor_unlock_; 408 bool draw_on_compositor_unlock_;
404 409
405 int draw_trace_count_; 410 int draw_trace_count_;
406 411
407 DISALLOW_COPY_AND_ASSIGN(RootWindow); 412 DISALLOW_COPY_AND_ASSIGN(RootWindow);
408 }; 413 };
409 414
410 } // namespace aura 415 } // namespace aura
411 416
412 #endif // UI_AURA_ROOT_WINDOW_H_ 417 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698