OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 : selection(selection), | 53 : selection(selection), |
54 saved_selection_for_focus_change(saved_selection_for_focus_change) { | 54 saved_selection_for_focus_change(saved_selection_for_focus_change) { |
55 } | 55 } |
56 | 56 |
57 const CHARRANGE selection; | 57 const CHARRANGE selection; |
58 const CHARRANGE saved_selection_for_focus_change; | 58 const CHARRANGE saved_selection_for_focus_change; |
59 }; | 59 }; |
60 | 60 |
61 DECLARE_WND_CLASS(L"Chrome_AutocompleteEditView"); | 61 DECLARE_WND_CLASS(L"Chrome_AutocompleteEditView"); |
62 | 62 |
63 AutocompleteEditViewWin(const ChromeFont& font, | 63 AutocompleteEditViewWin(const gfx::Font& font, |
64 AutocompleteEditController* controller, | 64 AutocompleteEditController* controller, |
65 ToolbarModel* toolbar_model, | 65 ToolbarModel* toolbar_model, |
66 views::View* parent_view, | 66 views::View* parent_view, |
67 HWND hwnd, | 67 HWND hwnd, |
68 Profile* profile, | 68 Profile* profile, |
69 CommandUpdater* command_updater, | 69 CommandUpdater* command_updater, |
70 bool popup_window_mode, | 70 bool popup_window_mode, |
71 AutocompletePopupPositioner* popup_positioner); | 71 AutocompletePopupPositioner* popup_positioner); |
72 ~AutocompleteEditViewWin(); | 72 ~AutocompleteEditViewWin(); |
73 | 73 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 421 |
422 // Holds the user's selection across focus changes. cpMin holds -1 when | 422 // Holds the user's selection across focus changes. cpMin holds -1 when |
423 // there is no saved selection. | 423 // there is no saved selection. |
424 CHARRANGE saved_selection_for_focus_change_; | 424 CHARRANGE saved_selection_for_focus_change_; |
425 | 425 |
426 // The context menu for the edit. | 426 // The context menu for the edit. |
427 scoped_ptr<views::Menu> context_menu_; | 427 scoped_ptr<views::Menu> context_menu_; |
428 | 428 |
429 // Font we're using. We keep a reference to make sure the font supplied to | 429 // Font we're using. We keep a reference to make sure the font supplied to |
430 // the constructor doesn't go away before we do. | 430 // the constructor doesn't go away before we do. |
431 ChromeFont font_; | 431 gfx::Font font_; |
432 | 432 |
433 // Metrics about the font, which we keep so we don't need to recalculate them | 433 // Metrics about the font, which we keep so we don't need to recalculate them |
434 // every time we paint. |font_y_adjustment_| is the number of pixels we need | 434 // every time we paint. |font_y_adjustment_| is the number of pixels we need |
435 // to shift the font vertically in order to make its baseline be at our | 435 // to shift the font vertically in order to make its baseline be at our |
436 // desired baseline in the edit. | 436 // desired baseline in the edit. |
437 int font_ascent_; | 437 int font_ascent_; |
438 int font_descent_; | 438 int font_descent_; |
439 int font_x_height_; | 439 int font_x_height_; |
440 int font_y_adjustment_; | 440 int font_y_adjustment_; |
441 | 441 |
(...skipping 23 matching lines...) Expand all Loading... |
465 // striken-out when displaying an insecure scheme. | 465 // striken-out when displaying an insecure scheme. |
466 url_parse::Component insecure_scheme_component_; | 466 url_parse::Component insecure_scheme_component_; |
467 | 467 |
468 // Instance of accessibility information and handling. | 468 // Instance of accessibility information and handling. |
469 mutable CComPtr<IAccessible> autocomplete_accessibility_; | 469 mutable CComPtr<IAccessible> autocomplete_accessibility_; |
470 | 470 |
471 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); | 471 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); |
472 }; | 472 }; |
473 | 473 |
474 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 474 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
OLD | NEW |