summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/frame
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 21:08:02 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 21:08:02 +0000
commitb577bd5475b1f214d0d7a2a64fa787cffd480829 (patch)
tree6fb38e2ea05d7f7e282747fa8b91b3ce8a488642 /chrome/browser/chromeos/frame
parent320ddbe75a02d9443c6b73073e9cf907668dccd2 (diff)
downloadchromium_src-b577bd5475b1f214d0d7a2a64fa787cffd480829.zip
chromium_src-b577bd5475b1f214d0d7a2a64fa787cffd480829.tar.gz
chromium_src-b577bd5475b1f214d0d7a2a64fa787cffd480829.tar.bz2
Revert 78062 - Migrate more of BrowserFrame's event handling down into WindowWin/WidgetWin and their delegate interfaces.
BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6683007 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/6686059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/frame')
-rw-r--r--chrome/browser/chromeos/frame/browser_frame_chromeos.cc5
-rw-r--r--chrome/browser/chromeos/frame/panel_browser_view.cc4
-rw-r--r--chrome/browser/chromeos/frame/panel_browser_view.h2
3 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/frame/browser_frame_chromeos.cc b/chrome/browser/chromeos/frame/browser_frame_chromeos.cc
index f403694..2224068 100644
--- a/chrome/browser/chromeos/frame/browser_frame_chromeos.cc
+++ b/chrome/browser/chromeos/frame/browser_frame_chromeos.cc
@@ -29,6 +29,11 @@ BrowserFrameChromeos::~BrowserFrameChromeos() {
}
void BrowserFrameChromeos::InitBrowserFrame() {
+ // NOTE: This logic supersedes the logic in BrowserFrameGtk::Init()
+ // by always setting browser_frame_view_.
+ set_browser_frame_view(
+ browser::CreateBrowserNonClientFrameView(this, browser_view()));
+
BrowserFrameGtk::InitBrowserFrame();
if (!browser_view()->IsBrowserTypePopup()) {
diff --git a/chrome/browser/chromeos/frame/panel_browser_view.cc b/chrome/browser/chromeos/frame/panel_browser_view.cc
index 9a601f9..657039e 100644
--- a/chrome/browser/chromeos/frame/panel_browser_view.cc
+++ b/chrome/browser/chromeos/frame/panel_browser_view.cc
@@ -96,8 +96,8 @@ bool PanelBrowserView::GetSavedWindowBounds(gfx::Rect* bounds) const {
return res;
}
-void PanelBrowserView::OnWindowActivationChanged(bool active) {
- ::BrowserView::OnWindowActivationChanged(active);
+void PanelBrowserView::OnWindowActivate(bool active) {
+ ::BrowserView::OnWindowActivate(active);
if (panel_controller_.get()) {
if (active)
panel_controller_->OnFocusIn();
diff --git a/chrome/browser/chromeos/frame/panel_browser_view.h b/chrome/browser/chromeos/frame/panel_browser_view.h
index eec101d..cb51c3e 100644
--- a/chrome/browser/chromeos/frame/panel_browser_view.h
+++ b/chrome/browser/chromeos/frame/panel_browser_view.h
@@ -32,7 +32,7 @@ class PanelBrowserView : public ::BrowserView,
virtual void UpdateTitleBar();
virtual void SetCreatorView(PanelBrowserView* creator);
virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const;
- virtual void OnWindowActivationChanged(bool active);
+ virtual void OnWindowActivate(bool active);
// PanelController::Delegate overrides
virtual string16 GetPanelTitle();