| OLD | NEW |
| 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 CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void EnsureWindowCreated(); | 87 void EnsureWindowCreated(); |
| 88 | 88 |
| 89 // Makes the stack window own the panel window such that multiple panels | 89 // Makes the stack window own the panel window such that multiple panels |
| 90 // stacked together could appear as a single window on the taskbar or | 90 // stacked together could appear as a single window on the taskbar or |
| 91 // launcher. | 91 // launcher. |
| 92 static void MakeStackWindowOwnPanelWindow(Panel* panel, | 92 static void MakeStackWindowOwnPanelWindow(Panel* panel, |
| 93 PanelStackView* stack_window); | 93 PanelStackView* stack_window); |
| 94 | 94 |
| 95 #if defined(OS_WIN) | 95 #if defined(OS_WIN) |
| 96 // Overridden from ui::HWNDMessageFilter: | 96 // Overridden from ui::HWNDMessageFilter: |
| 97 virtual bool FilterMessage(HWND hwnd, | 97 bool FilterMessage(HWND hwnd, |
| 98 UINT message, | 98 UINT message, |
| 99 WPARAM w_param, | 99 WPARAM w_param, |
| 100 LPARAM l_param, | 100 LPARAM l_param, |
| 101 LRESULT* l_result) override; | 101 LRESULT* l_result) override; |
| 102 | 102 |
| 103 // Overridden from TaskbarWindowThumbnailerDelegateWin: | 103 // Overridden from TaskbarWindowThumbnailerDelegateWin: |
| 104 virtual std::vector<HWND> GetSnapshotWindowHandles() const override; | 104 std::vector<HWND> GetSnapshotWindowHandles() const override; |
| 105 | 105 |
| 106 // Updates the live preview snapshot when something changes, like | 106 // Updates the live preview snapshot when something changes, like |
| 107 // adding/removing/moving/resizing a stacked panel. | 107 // adding/removing/moving/resizing a stacked panel. |
| 108 void RefreshLivePreviewThumbnail(); | 108 void RefreshLivePreviewThumbnail(); |
| 109 | 109 |
| 110 // Updates the bounds of the widget window in a deferred way. | 110 // Updates the bounds of the widget window in a deferred way. |
| 111 void DeferUpdateNativeWindowBounds(HDWP defer_window_pos_info, | 111 void DeferUpdateNativeWindowBounds(HDWP defer_window_pos_info, |
| 112 views::Widget* window, | 112 views::Widget* window, |
| 113 const gfx::Rect& bounds); | 113 const gfx::Rect& bounds); |
| 114 #endif | 114 #endif |
| (...skipping 21 matching lines...) Expand all Loading... |
| 136 bool bounds_updates_started_; | 136 bool bounds_updates_started_; |
| 137 BoundsUpdates bounds_updates_; | 137 BoundsUpdates bounds_updates_; |
| 138 | 138 |
| 139 // Used to animate the bounds changes at a synchronized pace. | 139 // Used to animate the bounds changes at a synchronized pace. |
| 140 scoped_ptr<gfx::LinearAnimation> bounds_animator_; | 140 scoped_ptr<gfx::LinearAnimation> bounds_animator_; |
| 141 | 141 |
| 142 DISALLOW_COPY_AND_ASSIGN(PanelStackView); | 142 DISALLOW_COPY_AND_ASSIGN(PanelStackView); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ | 145 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_STACK_VIEW_H_ |
| OLD | NEW |