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

Unified Diff: services/ui/ws/platform_display.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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 | « services/ui/ws/platform_display.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index 974feab54360cc262a2d0c12bd583d4c007a1418..3073cba44cf834ccaf216713039dcbcf8eec5775 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -101,18 +101,6 @@ DefaultPlatformDisplay::~DefaultPlatformDisplay() {
platform_window_.reset();
}
-void DefaultPlatformDisplay::SchedulePaint(const ServerWindow* window,
- const gfx::Rect& bounds) {
- DCHECK(window);
- if (!window->IsDrawn())
- return;
- const gfx::Rect root_relative_rect =
- ConvertRectBetweenWindows(window, delegate_->GetRootWindow(), bounds);
- if (root_relative_rect.IsEmpty())
- return;
- frame_generator_->RequestRedraw(root_relative_rect);
-}
-
void DefaultPlatformDisplay::SetViewportSize(const gfx::Size& size) {
platform_window_->SetBounds(gfx::Rect(size));
}
@@ -155,10 +143,6 @@ void DefaultPlatformDisplay::SetImeVisibility(bool visible) {
ime->SetImeVisibility(visible);
}
-bool DefaultPlatformDisplay::IsFramePending() const {
- return frame_generator_->is_frame_pending();
-}
-
gfx::Rect DefaultPlatformDisplay::GetBounds() const {
return metrics_.bounds;
}
@@ -209,7 +193,6 @@ void DefaultPlatformDisplay::OnBoundsChanged(const gfx::Rect& new_bounds) {
}
void DefaultPlatformDisplay::OnDamageRect(const gfx::Rect& damaged_region) {
- frame_generator_->RequestRedraw(damaged_region);
}
void DefaultPlatformDisplay::DispatchEvent(ui::Event* event) {
@@ -281,10 +264,6 @@ void DefaultPlatformDisplay::OnAcceleratedWidgetDestroyed() {
void DefaultPlatformDisplay::OnActivationChanged(bool active) {}
-ServerWindow* DefaultPlatformDisplay::GetRootWindow() {
- return delegate_->GetRootWindow();
-}
-
bool DefaultPlatformDisplay::IsInHighContrastMode() {
return delegate_ ? delegate_->IsInHighContrastMode() : false;
}
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698