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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 8652002: Move PropertyBag to base. Originally this was in chrome\common because only chrome used it. Now t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move to base namespace and forward declare where possible Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/views/omnibox/omnibox_view_win.h" 5 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <locale> 8 #include <locale>
9 #include <string> 9 #include <string>
10 10
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 return paint_struct.hdc; 359 return paint_struct.hdc;
360 } 360 }
361 361
362 // Intercepted method for EndPaint(). Must use __stdcall convention. 362 // Intercepted method for EndPaint(). Must use __stdcall convention.
363 BOOL WINAPI EndPaintIntercept(HWND hWnd, const PAINTSTRUCT* lpPaint) { 363 BOOL WINAPI EndPaintIntercept(HWND hWnd, const PAINTSTRUCT* lpPaint) {
364 return (edit_hwnd && (hWnd == edit_hwnd)) || ::EndPaint(hWnd, lpPaint); 364 return (edit_hwnd && (hWnd == edit_hwnd)) || ::EndPaint(hWnd, lpPaint);
365 } 365 }
366 366
367 // Returns a lazily initialized property bag accessor for saving our state in a 367 // Returns a lazily initialized property bag accessor for saving our state in a
368 // TabContents. 368 // TabContents.
369 PropertyAccessor<AutocompleteEditState>* GetStateAccessor() { 369 base::PropertyAccessor<AutocompleteEditState>* GetStateAccessor() {
370 static PropertyAccessor<AutocompleteEditState> state; 370 static base::PropertyAccessor<AutocompleteEditState> state;
371 return &state; 371 return &state;
372 } 372 }
373 373
374 class PaintPatcher { 374 class PaintPatcher {
375 public: 375 public:
376 PaintPatcher(); 376 PaintPatcher();
377 ~PaintPatcher(); 377 ~PaintPatcher();
378 378
379 void RefPatch(); 379 void RefPatch();
380 void DerefPatch(); 380 void DerefPatch();
(...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 return omnibox_view; 2690 return omnibox_view;
2691 } 2691 }
2692 return new OmniboxViewWin(controller, 2692 return new OmniboxViewWin(controller,
2693 toolbar_model, 2693 toolbar_model,
2694 location_bar, 2694 location_bar,
2695 command_updater, 2695 command_updater,
2696 popup_window_mode, 2696 popup_window_mode,
2697 location_bar); 2697 location_bar);
2698 } 2698 }
2699 #endif 2699 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/webui/constrained_html_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698