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

Side by Side Diff: ash/wm/workspace/frame_maximize_button.h

Issue 10704199: Implement remaining SkBitmapOperations as ImageSkiaOperations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ 5 #ifndef ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
6 #define ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ 6 #define ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/timer.h" 10 #include "base/timer.h"
(...skipping 22 matching lines...) Expand all
33 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; 33 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE;
34 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 34 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
35 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 35 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
36 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 36 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
37 virtual void OnMouseCaptureLost() OVERRIDE; 37 virtual void OnMouseCaptureLost() OVERRIDE;
38 virtual ui::GestureStatus OnGestureEvent( 38 virtual ui::GestureStatus OnGestureEvent(
39 const views::GestureEvent& event) OVERRIDE; 39 const views::GestureEvent& event) OVERRIDE;
40 40
41 protected: 41 protected:
42 // ImageButton overrides: 42 // ImageButton overrides:
43 virtual gfx::ImageSkia GetImageToPaint( 43 virtual gfx::ImageSkia GetImageToPaint() OVERRIDE;
44 ui::ScaleFactor scale_factor) OVERRIDE;
45 44
46 private: 45 private:
47 class EscapeEventFilter; 46 class EscapeEventFilter;
48 47
49 // Where to snap to. 48 // Where to snap to.
50 enum SnapType { 49 enum SnapType {
51 SNAP_LEFT, 50 SNAP_LEFT,
52 SNAP_RIGHT, 51 SNAP_RIGHT,
53 SNAP_MAXIMIZE, 52 SNAP_MAXIMIZE,
54 SNAP_MINIMIZE, 53 SNAP_MINIMIZE,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 scoped_ptr<EscapeEventFilter> escape_event_filter_; 117 scoped_ptr<EscapeEventFilter> escape_event_filter_;
119 118
120 base::OneShotTimer<FrameMaximizeButton> update_timer_; 119 base::OneShotTimer<FrameMaximizeButton> update_timer_;
121 120
122 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); 121 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton);
123 }; 122 };
124 123
125 } // namespace ash 124 } // namespace ash
126 125
127 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ 126 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | ash/wm/workspace/frame_maximize_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698