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

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

Issue 10829323: Fixing problem with not showing bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 "ash/wm/workspace/snap_types.h" 9 #include "ash/wm/workspace/snap_types.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool is_snap_enabled() const { return is_snap_enabled_; } 48 bool is_snap_enabled() const { return is_snap_enabled_; }
49 49
50 // WindowObserver overrides: 50 // WindowObserver overrides:
51 virtual void OnWindowBoundsChanged(aura::Window* window, 51 virtual void OnWindowBoundsChanged(aura::Window* window,
52 const gfx::Rect& old_bounds, 52 const gfx::Rect& old_bounds,
53 const gfx::Rect& new_bounds) OVERRIDE; 53 const gfx::Rect& new_bounds) OVERRIDE;
54 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 54 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
55 55
56 // ImageButton overrides: 56 // ImageButton overrides:
57 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 57 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
58 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 58 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
59 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 59 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
60 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 60 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
61 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 61 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
62 virtual void OnMouseCaptureLost() OVERRIDE; 62 virtual void OnMouseCaptureLost() OVERRIDE;
63 virtual ui::GestureStatus OnGestureEvent( 63 virtual ui::GestureStatus OnGestureEvent(
64 const views::GestureEvent& event) OVERRIDE; 64 const views::GestureEvent& event) OVERRIDE;
65 65
66 // Unit test overwrite: Change the UI delay used for the bubble show up. 66 // Unit test overwrite: Change the UI delay used for the bubble show up.
67 void set_bubble_appearance_delay_ms(int bubble_appearance_delay_ms) { 67 void set_bubble_appearance_delay_ms(int bubble_appearance_delay_ms) {
68 bubble_appearance_delay_ms_ = bubble_appearance_delay_ms; 68 bubble_appearance_delay_ms_ = bubble_appearance_delay_ms;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // The delay of the bubble appearance. 150 // The delay of the bubble appearance.
151 int bubble_appearance_delay_ms_; 151 int bubble_appearance_delay_ms_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); 153 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton);
154 }; 154 };
155 155
156 } // namespace ash 156 } // namespace ash
157 157
158 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ 158 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/workspace/frame_maximize_button.cc » ('j') | ash/wm/workspace/frame_maximize_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698