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

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

Issue 577523002: Refactoring the WeakPtrFactory initialization in chrome/browser/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolved Rebase issues Created 6 years, 3 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
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"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 int edges); 72 int edges);
73 #endif 73 #endif
74 74
75 // Function to retrieve default opacity value mainly based on platform 75 // Function to retrieve default opacity value mainly based on platform
76 // and desktop context. 76 // and desktop context.
77 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams( 77 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams(
78 const views::Widget::InitParams& params); 78 const views::Widget::InitParams& params);
79 79
80 #if defined(OS_WIN) 80 #if defined(OS_WIN)
81 AppbarAutohideEdgeMap appbar_autohide_edge_map_; 81 AppbarAutohideEdgeMap appbar_autohide_edge_map_;
82 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_;
83 // If true we're in the process of notifying a callback from 82 // If true we're in the process of notifying a callback from
84 // GetAutohideEdges().start a new query. 83 // GetAutohideEdges().start a new query.
85 bool in_autohide_edges_callback_; 84 bool in_autohide_edges_callback_;
85
86 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_;
86 #endif 87 #endif
87 88
88 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 89 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
89 }; 90 };
90 91
91 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 92 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/chrome_native_app_window_views_win.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