| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/views/frame/browser_frame_gtk.h" | 5 #include "chrome/browser/views/frame/browser_frame_gtk.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
| 9 #include "chrome/browser/views/frame/browser_root_view.h" | 9 #include "chrome/browser/views/frame/browser_root_view.h" |
| 10 #include "chrome/browser/views/frame/browser_view.h" | 10 #include "chrome/browser/views/frame/browser_view.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 void BrowserFrameGtk::Init() { | 37 void BrowserFrameGtk::Init() { |
| 38 WindowGtk::Init(NULL, gfx::Rect()); | 38 WindowGtk::Init(NULL, gfx::Rect()); |
| 39 } | 39 } |
| 40 | 40 |
| 41 views::Window* BrowserFrameGtk::GetWindow() { | 41 views::Window* BrowserFrameGtk::GetWindow() { |
| 42 return this; | 42 return this; |
| 43 } | 43 } |
| 44 | 44 |
| 45 void BrowserFrameGtk::TabStripCreated(TabStripWrapper* tabstrip) { | 45 void BrowserFrameGtk::TabStripCreated(TabStripWrapper* tabstrip) { |
| 46 root_view_->set_tabstrip(tabstrip); | |
| 47 } | 46 } |
| 48 | 47 |
| 49 int BrowserFrameGtk::GetMinimizeButtonOffset() const { | 48 int BrowserFrameGtk::GetMinimizeButtonOffset() const { |
| 50 NOTIMPLEMENTED(); | 49 NOTIMPLEMENTED(); |
| 51 return 0; | 50 return 0; |
| 52 } | 51 } |
| 53 | 52 |
| 54 gfx::Rect BrowserFrameGtk::GetBoundsForTabStrip( | 53 gfx::Rect BrowserFrameGtk::GetBoundsForTabStrip( |
| 55 TabStripWrapper* tabstrip) const { | 54 TabStripWrapper* tabstrip) const { |
| 56 return browser_frame_view_->GetBoundsForTabStrip(tabstrip); | 55 return browser_frame_view_->GetBoundsForTabStrip(tabstrip); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 72 | 71 |
| 73 ThemeProvider* BrowserFrameGtk::GetThemeProvider() const { | 72 ThemeProvider* BrowserFrameGtk::GetThemeProvider() const { |
| 74 return profile_->GetThemeProvider(); | 73 return profile_->GetThemeProvider(); |
| 75 } | 74 } |
| 76 | 75 |
| 77 ThemeProvider* BrowserFrameGtk::GetDefaultThemeProvider() const { | 76 ThemeProvider* BrowserFrameGtk::GetDefaultThemeProvider() const { |
| 78 return profile_->GetThemeProvider(); | 77 return profile_->GetThemeProvider(); |
| 79 } | 78 } |
| 80 | 79 |
| 81 views::RootView* BrowserFrameGtk::CreateRootView() { | 80 views::RootView* BrowserFrameGtk::CreateRootView() { |
| 82 root_view_ = new BrowserRootView(this); | 81 root_view_ = new BrowserRootView(browser_view_, this); |
| 83 return root_view_; | 82 return root_view_; |
| 84 } | 83 } |
| OLD | NEW |