summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/frame/browser_view.cc')
-rw-r--r--chrome/browser/views/frame/browser_view.cc52
1 files changed, 15 insertions, 37 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index 65afb62..8cc8ead 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -307,7 +307,21 @@ void BrowserView::Close() {
frame_->GetWindow()->Close();
}
-void* BrowserView::GetPlatformID() {
+void BrowserView::Activate() {
+ frame_->GetWindow()->Activate();
+}
+
+void BrowserView::FlashFrame() {
+ FLASHWINFO fwi;
+ fwi.cbSize = sizeof(fwi);
+ fwi.hwnd = frame_->GetWindow()->GetHWND();
+ fwi.dwFlags = FLASHW_ALL;
+ fwi.uCount = 4;
+ fwi.dwTimeout = 0;
+ FlashWindowEx(&fwi);
+}
+
+void* BrowserView::GetNativeHandle() {
return GetContainer()->GetHWND();
}
@@ -336,29 +350,6 @@ void BrowserView::UpdateTitleBar() {
frame_->GetWindow()->UpdateWindowIcon();
}
-void BrowserView::Activate() {
- frame_->GetWindow()->Activate();
-}
-
-void BrowserView::FlashFrame() {
- FLASHWINFO fwi;
- fwi.cbSize = sizeof(fwi);
- fwi.hwnd = frame_->GetWindow()->GetHWND();
- fwi.dwFlags = FLASHW_ALL;
- fwi.uCount = 4;
- fwi.dwTimeout = 0;
- FlashWindowEx(&fwi);
-}
-
-void BrowserView::SizeToContents(const gfx::Rect& contents_bounds) {
- frame_->SizeToContents(contents_bounds);
-}
-
-void BrowserView::SetAcceleratorTable(
- std::map<views::Accelerator, int>* accelerator_table) {
- accelerator_table_.reset(accelerator_table);
-}
-
void BrowserView::ValidateThrobber() {
if (ShouldShowWindowIcon()) {
TabContents* tab_contents = browser_->GetSelectedTabContents();
@@ -378,19 +369,6 @@ bool BrowserView::IsMaximized() {
return frame_->GetWindow()->IsMaximized();
}
-gfx::Rect BrowserView::GetBoundsForContentBounds(
- const gfx::Rect content_rect) {
- return frame_->GetWindowBoundsForClientBounds(content_rect);
-}
-
-void BrowserView::InfoBubbleShowing() {
- frame_->GetWindow()->DisableInactiveRendering(true);
-}
-
-void BrowserView::InfoBubbleClosing() {
- frame_->GetWindow()->DisableInactiveRendering(false);
-}
-
ToolbarStarToggle* BrowserView::GetStarButton() const {
return toolbar_->star_button();
}