diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-12 01:28:51 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-12 01:28:51 +0000 |
commit | 9b84c98d31b6282c5a399bb92ec720560f4e6496 (patch) | |
tree | 6a98a82dfad1a054e11b5721f6c9eb4dcede2fd5 /chrome/browser/views/first_run_bubble.h | |
parent | af829b7a2b2141c5a7a9f38626c91655c27797ca (diff) | |
download | chromium_src-9b84c98d31b6282c5a399bb92ec720560f4e6496.zip chromium_src-9b84c98d31b6282c5a399bb92ec720560f4e6496.tar.gz chromium_src-9b84c98d31b6282c5a399bb92ec720560f4e6496.tar.bz2 |
Clean up a few things about the first run bubble code:
* Constants at top didn't need "Static" since they were already in an anonymous namespace
* Move function definitions out from declarations. This avoids auto-inlining these (sometimes large) functions and makes it easier to see what a class contains.
* Now that I could see the class functions, make as many as possible private.
* Make sure definition order and declaration order match.
This shouldn't make any functional changes.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/202065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26069 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/first_run_bubble.h')
-rw-r--r-- | chrome/browser/views/first_run_bubble.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/chrome/browser/views/first_run_bubble.h b/chrome/browser/views/first_run_bubble.h index e3c7024..81f870d 100644 --- a/chrome/browser/views/first_run_bubble.h +++ b/chrome/browser/views/first_run_bubble.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -19,20 +19,15 @@ class FirstRunBubble : public InfoBubble, const gfx::Rect& position_relative_to, bool use_OEM_bubble); - FirstRunBubble() - : has_been_activated_(false), - ALLOW_THIS_IN_INITIALIZER_LIST(enable_window_method_factory_(this)), - view_(NULL) { - } - - virtual ~FirstRunBubble() { - // We should have called RevokeAll on the method factory already. - DCHECK(enable_window_method_factory_.empty()); - enable_window_method_factory_.RevokeAll(); - } + private: + FirstRunBubble(); + virtual ~FirstRunBubble(); void set_view(FirstRunBubbleViewBase* view) { view_ = view; } + // Re-enable the parent window. + void EnableParent(); + #if defined(OS_WIN) // Overridden from InfoBubble: virtual void OnActivate(UINT action, BOOL minimized, HWND window); @@ -43,10 +38,6 @@ class FirstRunBubble : public InfoBubble, bool closed_by_escape); virtual bool CloseOnEscape() { return true; } - private: - // Re-enable the parent window. - void EnableParent(); - // Whether we have already been activated. bool has_been_activated_; |