Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.h

Issue 14845020: Ignore unwanted AddRef/ReleaesModule calls to g_browser_process from the views layer during startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "ui/base/accessibility/accessibility_types.h" 11 #include "ui/base/accessibility/accessibility_types.h"
12 #include "ui/views/views_delegate.h" 12 #include "ui/views/views_delegate.h"
13 13
14 class ChromeViewsDelegate : public views::ViewsDelegate { 14 class ChromeViewsDelegate : public views::ViewsDelegate {
15 public: 15 public:
16 ChromeViewsDelegate() {} 16 ChromeViewsDelegate();
17 virtual ~ChromeViewsDelegate() {} 17 virtual ~ChromeViewsDelegate() {}
18 18
19 // Overridden from views::ViewsDelegate: 19 // Overridden from views::ViewsDelegate:
20 virtual void SaveWindowPlacement(const views::Widget* window, 20 virtual void SaveWindowPlacement(const views::Widget* window,
21 const std::string& window_name, 21 const std::string& window_name,
22 const gfx::Rect& bounds, 22 const gfx::Rect& bounds,
23 ui::WindowShowState show_state) OVERRIDE; 23 ui::WindowShowState show_state) OVERRIDE;
24 virtual bool GetSavedWindowPlacement( 24 virtual bool GetSavedWindowPlacement(
25 const std::string& window_name, 25 const std::string& window_name,
26 gfx::Rect* bounds, 26 gfx::Rect* bounds,
27 ui::WindowShowState* show_state) const OVERRIDE; 27 ui::WindowShowState* show_state) const OVERRIDE;
28 virtual void NotifyAccessibilityEvent( 28 virtual void NotifyAccessibilityEvent(
29 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE; 29 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE;
30 virtual void NotifyMenuItemFocused(const string16& menu_name, 30 virtual void NotifyMenuItemFocused(const string16& menu_name,
31 const string16& menu_item_name, 31 const string16& menu_item_name,
32 int item_index, 32 int item_index,
33 int item_count, 33 int item_count,
34 bool has_submenu) OVERRIDE; 34 bool has_submenu) OVERRIDE;
35 35
36 #if defined(OS_WIN) 36 #if defined(OS_WIN)
37 virtual HICON GetDefaultWindowIcon() const OVERRIDE; 37 virtual HICON GetDefaultWindowIcon() const OVERRIDE;
38 #endif 38 #endif
39 virtual views::NonClientFrameView* CreateDefaultNonClientFrameView( 39 virtual views::NonClientFrameView* CreateDefaultNonClientFrameView(
40 views::Widget* widget) OVERRIDE; 40 views::Widget* widget) OVERRIDE;
41 virtual bool UseTransparentWindows() const OVERRIDE; 41 virtual bool UseTransparentWindows() const OVERRIDE;
42 virtual void SetRefCounting(bool is_ref_counting) OVERRIDE;
42 virtual void AddRef() OVERRIDE; 43 virtual void AddRef() OVERRIDE;
43 virtual void ReleaseRef() OVERRIDE; 44 virtual void ReleaseRef() OVERRIDE;
44 virtual content::WebContents* CreateWebContents( 45 virtual content::WebContents* CreateWebContents(
45 content::BrowserContext* browser_context, 46 content::BrowserContext* browser_context,
46 content::SiteInstance* site_instance) OVERRIDE; 47 content::SiteInstance* site_instance) OVERRIDE;
47 virtual void OnBeforeWidgetInit( 48 virtual void OnBeforeWidgetInit(
48 views::Widget::InitParams* params, 49 views::Widget::InitParams* params,
49 views::internal::NativeWidgetDelegate* delegate) OVERRIDE; 50 views::internal::NativeWidgetDelegate* delegate) OVERRIDE;
50 51
51 private: 52 private:
53 bool is_ref_counting_;
54
52 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 55 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
53 }; 56 };
54 57
55 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 58 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc ('k') | chrome/browser/ui/views/chrome_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698