OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |