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

Unified Diff: ash/test/test_screenshot_delegate.h

Issue 1909873002: Allow taking screen shot of a non child window which has delegate to paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 | « ash/shell.cc ('k') | ash/test/test_screenshot_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_screenshot_delegate.h
diff --git a/ash/test/test_screenshot_delegate.h b/ash/test/test_screenshot_delegate.h
index 6b94940334e4c08ced478b30a3ee137c00e72355..1db807236b70b8275d6c2d9f7dde0abcdcd605da 100644
--- a/ash/test/test_screenshot_delegate.h
+++ b/ash/test/test_screenshot_delegate.h
@@ -33,12 +33,10 @@ class TestScreenshotDelegate : public ScreenshotDelegate {
return handle_take_partial_screenshot_count_;
}
- int handle_take_window_screenshot_count() const {
- return handle_take_window_screenshot_count_;
- }
-
const gfx::Rect& last_rect() const { return last_rect_; }
+ const aura::Window* GetSelectedWindowAndReset();
+
void set_can_take_screenshot(bool can_take_screenshot) {
can_take_screenshot_ = can_take_screenshot;
}
@@ -46,9 +44,9 @@ class TestScreenshotDelegate : public ScreenshotDelegate {
private:
int handle_take_screenshot_count_;
int handle_take_partial_screenshot_count_;
- int handle_take_window_screenshot_count_;
gfx::Rect last_rect_;
bool can_take_screenshot_;
+ aura::Window* selected_window_;
DISALLOW_COPY_AND_ASSIGN(TestScreenshotDelegate);
};
« no previous file with comments | « ash/shell.cc ('k') | ash/test/test_screenshot_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698