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

Side by Side Diff: ui/message_center/views/toast_contents_view.h

Issue 293833002: Fix Widget::InitParams::activatable logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/message_center/views/toast_contents_view.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 int button_index) OVERRIDE; 90 int button_index) OVERRIDE;
91 91
92 // Overridden from gfx::AnimationDelegate: 92 // Overridden from gfx::AnimationDelegate:
93 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 93 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
94 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; 94 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
95 virtual void AnimationCanceled(const gfx::Animation* animation) OVERRIDE; 95 virtual void AnimationCanceled(const gfx::Animation* animation) OVERRIDE;
96 96
97 // Overridden from views::WidgetDelegate: 97 // Overridden from views::WidgetDelegate:
98 virtual views::View* GetContentsView() OVERRIDE; 98 virtual views::View* GetContentsView() OVERRIDE;
99 virtual void WindowClosing() OVERRIDE; 99 virtual void WindowClosing() OVERRIDE;
100 virtual bool CanActivate() const OVERRIDE;
101 virtual void OnDisplayChanged() OVERRIDE; 100 virtual void OnDisplayChanged() OVERRIDE;
102 virtual void OnWorkAreaChanged() OVERRIDE; 101 virtual void OnWorkAreaChanged() OVERRIDE;
103 102
104 // Initialization and update. 103 // Initialization and update.
105 void CreateWidget(gfx::NativeView parent); 104 void CreateWidget(gfx::NativeView parent);
106 105
107 // Immediately moves the toast without any sort of delay or animation. 106 // Immediately moves the toast without any sort of delay or animation.
108 void SetBoundsInstantly(gfx::Rect new_bounds); 107 void SetBoundsInstantly(gfx::Rect new_bounds);
109 108
110 // Given the bounds of a toast on the screen, compute the bouds for that 109 // Given the bounds of a toast on the screen, compute the bouds for that
(...skipping 24 matching lines...) Expand all
135 134
136 gfx::Point origin_; 135 gfx::Point origin_;
137 gfx::Size preferred_size_; 136 gfx::Size preferred_size_;
138 137
139 DISALLOW_COPY_AND_ASSIGN(ToastContentsView); 138 DISALLOW_COPY_AND_ASSIGN(ToastContentsView);
140 }; 139 };
141 140
142 } // namespace message_center 141 } // namespace message_center
143 142
144 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 143 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698