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

Side by Side Diff: ui/views/widget/widget.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <stack> 10 #include <stack>
(...skipping 17 matching lines...) Expand all
28 #endif 28 #endif
29 #if defined(IsMinimized) 29 #if defined(IsMinimized)
30 #undef IsMinimized 30 #undef IsMinimized
31 #endif 31 #endif
32 #if defined(CreateWindow) 32 #if defined(CreateWindow)
33 #undef CreateWindow 33 #undef CreateWindow
34 #endif 34 #endif
35 #endif 35 #endif
36 36
37 namespace gfx { 37 namespace gfx {
38 class Canvas; 38 class CanvasSkia;
39 class Point; 39 class Point;
40 class Rect; 40 class Rect;
41 } 41 }
42 42
43 namespace ui { 43 namespace ui {
44 class Accelerator; 44 class Accelerator;
45 class Compositor; 45 class Compositor;
46 class OSExchangeData; 46 class OSExchangeData;
47 class ThemeProvider; 47 class ThemeProvider;
48 enum TouchStatus; 48 enum TouchStatus;
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 virtual void OnNativeWidgetDestroying() OVERRIDE; 616 virtual void OnNativeWidgetDestroying() OVERRIDE;
617 virtual void OnNativeWidgetDestroyed() OVERRIDE; 617 virtual void OnNativeWidgetDestroyed() OVERRIDE;
618 virtual gfx::Size GetMinimumSize() OVERRIDE; 618 virtual gfx::Size GetMinimumSize() OVERRIDE;
619 virtual gfx::Size GetMaximumSize() OVERRIDE; 619 virtual gfx::Size GetMaximumSize() OVERRIDE;
620 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) OVERRIDE; 620 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) OVERRIDE;
621 virtual void OnNativeWidgetBeginUserBoundsChange() OVERRIDE; 621 virtual void OnNativeWidgetBeginUserBoundsChange() OVERRIDE;
622 virtual void OnNativeWidgetEndUserBoundsChange() OVERRIDE; 622 virtual void OnNativeWidgetEndUserBoundsChange() OVERRIDE;
623 virtual bool HasFocusManager() const OVERRIDE; 623 virtual bool HasFocusManager() const OVERRIDE;
624 virtual bool OnNativeWidgetPaintAccelerated( 624 virtual bool OnNativeWidgetPaintAccelerated(
625 const gfx::Rect& dirty_region) OVERRIDE; 625 const gfx::Rect& dirty_region) OVERRIDE;
626 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) OVERRIDE; 626 virtual void OnNativeWidgetPaint(gfx::CanvasSkia* canvas) OVERRIDE;
627 virtual int GetNonClientComponent(const gfx::Point& point) OVERRIDE; 627 virtual int GetNonClientComponent(const gfx::Point& point) OVERRIDE;
628 virtual bool OnKeyEvent(const KeyEvent& event) OVERRIDE; 628 virtual bool OnKeyEvent(const KeyEvent& event) OVERRIDE;
629 virtual bool OnMouseEvent(const MouseEvent& event) OVERRIDE; 629 virtual bool OnMouseEvent(const MouseEvent& event) OVERRIDE;
630 virtual void OnMouseCaptureLost() OVERRIDE; 630 virtual void OnMouseCaptureLost() OVERRIDE;
631 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; 631 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE;
632 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE; 632 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE;
633 virtual bool ExecuteCommand(int command_id) OVERRIDE; 633 virtual bool ExecuteCommand(int command_id) OVERRIDE;
634 virtual InputMethod* GetInputMethodDirect() OVERRIDE; 634 virtual InputMethod* GetInputMethodDirect() OVERRIDE;
635 virtual Widget* AsWidget() OVERRIDE; 635 virtual Widget* AsWidget() OVERRIDE;
636 virtual const Widget* AsWidget() const OVERRIDE; 636 virtual const Widget* AsWidget() const OVERRIDE;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 // duplicate move events even though the mouse hasn't moved. 772 // duplicate move events even though the mouse hasn't moved.
773 bool last_mouse_event_was_move_; 773 bool last_mouse_event_was_move_;
774 gfx::Point last_mouse_event_position_; 774 gfx::Point last_mouse_event_position_;
775 775
776 DISALLOW_COPY_AND_ASSIGN(Widget); 776 DISALLOW_COPY_AND_ASSIGN(Widget);
777 }; 777 };
778 778
779 } // namespace views 779 } // namespace views
780 780
781 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 781 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698