| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_VIEW_WIN_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual void AnimationProgressed(const Animation* animation); | 60 virtual void AnimationProgressed(const Animation* animation); |
| 61 | 61 |
| 62 // Overridden from BlockedPopupContainerView: | 62 // Overridden from BlockedPopupContainerView: |
| 63 virtual void SetPosition(); | 63 virtual void SetPosition(); |
| 64 virtual void ShowView(); | 64 virtual void ShowView(); |
| 65 virtual void UpdateLabel(); | 65 virtual void UpdateLabel(); |
| 66 virtual void HideView(); | 66 virtual void HideView(); |
| 67 virtual void Destroy(); | 67 virtual void Destroy(); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 // For the static constructor BlockedPopupContainerView::Create(). |
| 70 friend class BlockedPopupContainerView; | 71 friend class BlockedPopupContainerView; |
| 71 | 72 |
| 72 // Creates a container for a certain TabContents. | 73 // Creates a container for a certain TabContents. |
| 73 explicit BlockedPopupContainerViewWin(BlockedPopupContainer* container); | 74 explicit BlockedPopupContainerViewWin(BlockedPopupContainer* container); |
| 74 | 75 |
| 75 // Overridden from views::WidgetWin: | 76 // Overridden from views::WidgetWin: |
| 76 | 77 |
| 77 // Makes the top corners of the window rounded during resizing events. | 78 // Makes the top corners of the window rounded during resizing events. |
| 78 virtual void OnSize(UINT param, const CSize& size); | 79 virtual void OnSize(UINT param, const CSize& size); |
| 79 | 80 |
| 80 // Our model; calling the shots. | 81 // Our model; calling the shots. |
| 81 BlockedPopupContainer* container_model_; | 82 BlockedPopupContainer* container_model_; |
| 82 | 83 |
| 83 // Our associated view object. | 84 // Our associated view object. |
| 84 BlockedPopupContainerInternalView* container_view_; | 85 BlockedPopupContainerInternalView* container_view_; |
| 85 | 86 |
| 86 // The animation that slides us up and down. | 87 // The animation that slides us up and down. |
| 87 scoped_ptr<SlideAnimation> slide_animation_; | 88 scoped_ptr<SlideAnimation> slide_animation_; |
| 88 | 89 |
| 89 // The bounds to report to the automation system (may not equal our actual | |
| 90 // bounds while animating in or out). | |
| 91 gfx::Rect bounds_; | |
| 92 | |
| 93 DISALLOW_COPY_AND_ASSIGN(BlockedPopupContainerViewWin); | 90 DISALLOW_COPY_AND_ASSIGN(BlockedPopupContainerViewWin); |
| 94 }; | 91 }; |
| 95 | 92 |
| 96 #endif // CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_VIEW_WIN_H_ | 93 #endif // CHROME_BROWSER_VIEWS_BLOCKED_POPUP_CONTAINER_VIEW_WIN_H_ |
| OLD | NEW |