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

Side by Side Diff: views/widget/widget_gtk.cc

Issue 6591120: Update MouseEvent (initial pass). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 9 years, 9 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
« no previous file with comments | « views/widget/widget_gtk.h ('k') | views/widget/widget_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "views/widget/widget_gtk.h" 5 #include "views/widget/widget_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 #include <gdk/gdkx.h> 8 #include <gdk/gdkx.h>
9 #include <X11/extensions/shape.h> 9 #include <X11/extensions/shape.h>
10 10
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 if (bounds.width() > 0 && bounds.height() > 0) 594 if (bounds.width() > 0 && bounds.height() > 0)
595 gtk_window_resize(GTK_WINDOW(widget_), bounds.width(), bounds.height()); 595 gtk_window_resize(GTK_WINDOW(widget_), bounds.width(), bounds.height());
596 gtk_window_move(GTK_WINDOW(widget_), bounds.x(), bounds.y()); 596 gtk_window_move(GTK_WINDOW(widget_), bounds.x(), bounds.y());
597 } 597 }
598 } 598 }
599 599
600 gfx::NativeView WidgetGtk::GetNativeView() const { 600 gfx::NativeView WidgetGtk::GetNativeView() const {
601 return widget_; 601 return widget_;
602 } 602 }
603 603
604 void WidgetGtk::GenerateMousePressedForView(View* view,
605 const gfx::Point& point) {
606 NOTIMPLEMENTED();
607 }
608
609 bool WidgetGtk::GetAccelerator(int cmd_id, ui::Accelerator* accelerator) { 604 bool WidgetGtk::GetAccelerator(int cmd_id, ui::Accelerator* accelerator) {
610 NOTIMPLEMENTED(); 605 NOTIMPLEMENTED();
611 return false; 606 return false;
612 } 607 }
613 608
614 Window* WidgetGtk::GetWindow() { 609 Window* WidgetGtk::GetWindow() {
615 return GetWindowImpl(widget_); 610 return GetWindowImpl(widget_);
616 } 611 }
617 612
618 const Window* WidgetGtk::GetWindow() const { 613 const Window* WidgetGtk::GetWindow() const {
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 1577
1583 NativeWidget* native_widget = GetNativeWidgetForNativeView(native_view); 1578 NativeWidget* native_widget = GetNativeWidgetForNativeView(native_view);
1584 if (native_widget) 1579 if (native_widget)
1585 children->insert(native_widget); 1580 children->insert(native_widget);
1586 gtk_container_foreach(GTK_CONTAINER(native_view), 1581 gtk_container_foreach(GTK_CONTAINER(native_view),
1587 EnumerateChildWidgetsForNativeWidgets, 1582 EnumerateChildWidgetsForNativeWidgets,
1588 reinterpret_cast<gpointer>(children)); 1583 reinterpret_cast<gpointer>(children));
1589 } 1584 }
1590 1585
1591 } // namespace views 1586 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_gtk.h ('k') | views/widget/widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698