summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history_view.cc')
-rw-r--r--chrome/browser/history_view.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/history_view.cc b/chrome/browser/history_view.cc
index 17a3e77..4cec25f 100644
--- a/chrome/browser/history_view.cc
+++ b/chrome/browser/history_view.cc
@@ -22,8 +22,8 @@
#include "chrome/common/resource_bundle.h"
#include "chrome/common/time_format.h"
#include "chrome/common/win_util.h"
-#include "chrome/views/container.h"
#include "chrome/views/link.h"
+#include "chrome/views/widget.h"
#include "generated_resources.h"
@@ -566,7 +566,7 @@ void HistoryItemRenderer::StarStateChanged(bool state) {
gfx::Rect star_bounds(star_location.x(), star_location.y() + 4,
star_toggle_->width(),
star_toggle_->height());
- HWND parent = GetContainer()->GetHWND();
+ HWND parent = GetWidget()->GetHWND();
Profile* profile = model_->profile();
GURL url = model_->GetURL(model_index_);
@@ -839,8 +839,8 @@ views::VariableRowHeightScrollHelper::RowInfo
}
bool HistoryView::IsVisible() {
- views::Container* vc = GetContainer();
- return vc && vc->IsVisible();
+ views::Widget* widget = GetWidget();
+ return widget && widget->IsVisible();
}
void HistoryView::DidChangeBounds(const gfx::Rect& previous,
@@ -1246,7 +1246,7 @@ void HistoryView::DeleteDayAtModelIndex(int index) {
IDS_HISTORY_DELETE_PRIOR_VISITS_WARNING_TITLE);
UINT flags = MB_OKCANCEL | MB_ICONWARNING | MB_TOPMOST | MB_SETFOREGROUND;
- if (win_util::MessageBox(GetContainer()->GetHWND(),
+ if (win_util::MessageBox(GetWidget()->GetHWND(),
text, caption, flags) != IDOK) {
return;
}