OLD | NEW |
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 #include "chrome/browser/ui/views/panels/panel_view.h" | 5 #include "chrome/browser/ui/views/panels/panel_view.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 | 99 |
100 // NativePanelTesting implementation. | 100 // NativePanelTesting implementation. |
101 class NativePanelTestingViews : public NativePanelTesting { | 101 class NativePanelTestingViews : public NativePanelTesting { |
102 public: | 102 public: |
103 explicit NativePanelTestingViews(PanelView* panel_view); | 103 explicit NativePanelTestingViews(PanelView* panel_view); |
104 virtual ~NativePanelTestingViews(); | 104 virtual ~NativePanelTestingViews(); |
105 | 105 |
106 private: | 106 private: |
107 virtual void PressLeftMouseButtonTitlebar( | 107 virtual void PressLeftMouseButtonTitlebar( |
108 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE; | 108 const gfx::Point& mouse_location, panel::ClickModifier modifier) override; |
109 virtual void ReleaseMouseButtonTitlebar( | 109 virtual void ReleaseMouseButtonTitlebar( |
110 panel::ClickModifier modifier) OVERRIDE; | 110 panel::ClickModifier modifier) override; |
111 virtual void DragTitlebar(const gfx::Point& mouse_location) OVERRIDE; | 111 virtual void DragTitlebar(const gfx::Point& mouse_location) override; |
112 virtual void CancelDragTitlebar() OVERRIDE; | 112 virtual void CancelDragTitlebar() override; |
113 virtual void FinishDragTitlebar() OVERRIDE; | 113 virtual void FinishDragTitlebar() override; |
114 virtual bool VerifyDrawingAttention() const OVERRIDE; | 114 virtual bool VerifyDrawingAttention() const override; |
115 virtual bool VerifyActiveState(bool is_active) OVERRIDE; | 115 virtual bool VerifyActiveState(bool is_active) override; |
116 virtual bool VerifyAppIcon() const OVERRIDE; | 116 virtual bool VerifyAppIcon() const override; |
117 virtual bool VerifySystemMinimizeState() const OVERRIDE; | 117 virtual bool VerifySystemMinimizeState() const override; |
118 virtual bool IsWindowVisible() const OVERRIDE; | 118 virtual bool IsWindowVisible() const override; |
119 virtual bool IsWindowSizeKnown() const OVERRIDE; | 119 virtual bool IsWindowSizeKnown() const override; |
120 virtual bool IsAnimatingBounds() const OVERRIDE; | 120 virtual bool IsAnimatingBounds() const override; |
121 virtual bool IsButtonVisible( | 121 virtual bool IsButtonVisible( |
122 panel::TitlebarButtonType button_type) const OVERRIDE; | 122 panel::TitlebarButtonType button_type) const override; |
123 virtual panel::CornerStyle GetWindowCornerStyle() const OVERRIDE; | 123 virtual panel::CornerStyle GetWindowCornerStyle() const override; |
124 virtual bool EnsureApplicationRunOnForeground() OVERRIDE; | 124 virtual bool EnsureApplicationRunOnForeground() override; |
125 | 125 |
126 PanelView* panel_view_; | 126 PanelView* panel_view_; |
127 }; | 127 }; |
128 | 128 |
129 NativePanelTestingViews::NativePanelTestingViews(PanelView* panel_view) | 129 NativePanelTestingViews::NativePanelTestingViews(PanelView* panel_view) |
130 : panel_view_(panel_view) { | 130 : panel_view_(panel_view) { |
131 } | 131 } |
132 | 132 |
133 NativePanelTestingViews::~NativePanelTestingViews() { | 133 NativePanelTestingViews::~NativePanelTestingViews() { |
134 } | 134 } |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 // SWP_FRAMECHANGED flag must be called in order for the cached window data | 1145 // SWP_FRAMECHANGED flag must be called in order for the cached window data |
1146 // to be updated properly. | 1146 // to be updated properly. |
1147 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591(v=vs.85).a
spx | 1147 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591(v=vs.85).a
spx |
1148 if (update_frame) { | 1148 if (update_frame) { |
1149 ::SetWindowPos(native_window, NULL, 0, 0, 0, 0, | 1149 ::SetWindowPos(native_window, NULL, 0, 0, 0, 0, |
1150 SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | | 1150 SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | |
1151 SWP_NOZORDER | SWP_NOACTIVATE); | 1151 SWP_NOZORDER | SWP_NOACTIVATE); |
1152 } | 1152 } |
1153 } | 1153 } |
1154 #endif | 1154 #endif |
OLD | NEW |