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

Unified Diff: ui/aura/root_window_host_mac.mm

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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/root_window_host_mac.mm
diff --git a/ui/aura/root_window_host_mac.mm b/ui/aura/root_window_host_mac.mm
index fb3caaaaf905b393050df5bc2ce6dae28f9b50f2..72425c424d530946988a27c1440cd02a1726742d 100644
--- a/ui/aura/root_window_host_mac.mm
+++ b/ui/aura/root_window_host_mac.mm
@@ -45,6 +45,8 @@ class RootWindowHostMac : public RootWindowHost,
virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
virtual bool ConfineCursorToRootWindow() OVERRIDE;
virtual void UnConfineCursor() OVERRIDE;
+ virtual bool GrabSnapshot(std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds) OVERRIDE;
// RootWindowHostMacDelegate:
virtual void SendEvent(const base::NativeEvent& native_event) OVERRIDE;
@@ -169,6 +171,13 @@ bool RootWindowHostMac::ConfineCursorToRootWindow() {
void RootWindowHostMac::UnConfineCursor() {
}
+bool RootWindowHostMac::GrabSnapshot(
+ std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
void RootWindowHostMac::SendEvent(const base::NativeEvent& native_event) {
ui::EventType type = ui::EventTypeFromNative(native_event);
switch (type) {

Powered by Google App Engine
This is Rietveld 408576698