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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 171 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
172 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 172 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
173 | 173 |
174 // Overridden from aura::client::DragDropDelegate: | 174 // Overridden from aura::client::DragDropDelegate: |
175 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 175 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
176 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 176 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
177 virtual void OnDragExited() OVERRIDE; | 177 virtual void OnDragExited() OVERRIDE; |
178 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 178 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
179 | 179 |
180 // Overridden from aura::WindowObserver: | 180 // Overridden from aura::WindowObserver: |
181 virtual void OnWindowParentChanged(aura::Window* window, | |
182 aura::Window* parent) OVERRIDE; | |
183 virtual void OnWindowVisibilityChanged(aura::Window* window, | 181 virtual void OnWindowVisibilityChanged(aura::Window* window, |
184 bool visible) OVERRIDE; | 182 bool visible) OVERRIDE; |
185 | 183 |
186 // Update the web contents visiblity. | 184 // Update the web contents visiblity. |
187 void UpdateWebContentsVisibility(bool visible); | 185 void UpdateWebContentsVisibility(bool visible); |
188 | 186 |
189 scoped_ptr<aura::Window> window_; | 187 scoped_ptr<aura::Window> window_; |
190 | 188 |
191 // The window that shows the screenshot of the history page during an | 189 // The window that shows the screenshot of the history page during an |
192 // overscroll navigation gesture. | 190 // overscroll navigation gesture. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // On Windows we can run into problems if resources get released within the | 230 // On Windows we can run into problems if resources get released within the |
233 // initialization phase while the content (and its dimensions) are not known. | 231 // initialization phase while the content (and its dimensions) are not known. |
234 bool is_or_was_visible_; | 232 bool is_or_was_visible_; |
235 | 233 |
236 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 234 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
237 }; | 235 }; |
238 | 236 |
239 } // namespace content | 237 } // namespace content |
240 | 238 |
241 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 239 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
OLD | NEW |