OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tab_contents/tab_contents_view_views.h" | 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "chrome/browser/ui/constrained_window.h" | 10 #include "chrome/browser/ui/constrained_window.h" |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 } | 368 } |
369 | 369 |
370 //////////////////////////////////////////////////////////////////////////////// | 370 //////////////////////////////////////////////////////////////////////////////// |
371 // TabContentsViewViews, internal::NativeTabContentsViewDelegate implementation: | 371 // TabContentsViewViews, internal::NativeTabContentsViewDelegate implementation: |
372 | 372 |
373 TabContents* TabContentsViewViews::GetTabContents() { | 373 TabContents* TabContentsViewViews::GetTabContents() { |
374 return tab_contents_; | 374 return tab_contents_; |
375 } | 375 } |
376 | 376 |
377 bool TabContentsViewViews::IsShowingSadTab() const { | 377 bool TabContentsViewViews::IsShowingSadTab() const { |
378 return tab_contents_->is_crashed() && overlaid_view_; | 378 return tab_contents_->IsCrashed() && overlaid_view_; |
379 } | 379 } |
380 | 380 |
381 void TabContentsViewViews::OnNativeTabContentsViewShown() { | 381 void TabContentsViewViews::OnNativeTabContentsViewShown() { |
382 tab_contents_->ShowContents(); | 382 tab_contents_->ShowContents(); |
383 } | 383 } |
384 | 384 |
385 void TabContentsViewViews::OnNativeTabContentsViewHidden() { | 385 void TabContentsViewViews::OnNativeTabContentsViewHidden() { |
386 tab_contents_->HideContents(); | 386 tab_contents_->HideContents(); |
387 } | 387 } |
388 | 388 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 tab_contents_->HideContents(); | 459 tab_contents_->HideContents(); |
460 } | 460 } |
461 } | 461 } |
462 | 462 |
463 void TabContentsViewViews::OnNativeWidgetSizeChanged( | 463 void TabContentsViewViews::OnNativeWidgetSizeChanged( |
464 const gfx::Size& new_size) { | 464 const gfx::Size& new_size) { |
465 if (overlaid_view_) | 465 if (overlaid_view_) |
466 overlaid_view_->SetBounds(gfx::Rect(new_size)); | 466 overlaid_view_->SetBounds(gfx::Rect(new_size)); |
467 views::Widget::OnNativeWidgetSizeChanged(new_size); | 467 views::Widget::OnNativeWidgetSizeChanged(new_size); |
468 } | 468 } |
OLD | NEW |