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

Unified Diff: ui/aura/root_window.cc

Issue 10381063: Aura/ash split: Don't use X11 window borders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with windows/mac implementations 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.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 4dfdc97eb45810329b9459ec21ac43d9a13d804f..a921e7e1f637fd0dee7a58aad75931ab40abac94 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -235,6 +235,10 @@ void RootWindow::ScheduleFullDraw() {
compositor_->ScheduleFullDraw();
}
+void RootWindow::SetUseOSWindowBorders(bool use_os_borders) {
+ host_->SetUseOSWindowBorders(use_os_borders);
+}
+
bool RootWindow::DispatchMouseEvent(MouseEvent* event) {
if (mouse_move_hold_count_) {
if (event->type() == ui::ET_MOUSE_DRAGGED ||
@@ -373,6 +377,10 @@ bool RootWindow::DispatchGestureEvent(GestureEvent* event) {
return false;
}
+bool RootWindow::DispatchWindowDragMovement(int hittest, MouseEvent* event) {
+ return host_->DispatchWindowDragMovement(hittest, event);
+}
+
void RootWindow::OnHostResized(const gfx::Size& size_in_pixel) {
DispatchHeldMouseMove();
// The compositor should have the same size as the native root window host.

Powered by Google App Engine
This is Rietveld 408576698