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

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

Issue 10854017: Basic metro snap view omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compilation. Created 8 years, 4 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_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const CHARRANGE selection; 54 const CHARRANGE selection;
55 const CHARRANGE saved_selection_for_focus_change; 55 const CHARRANGE saved_selection_for_focus_change;
56 }; 56 };
57 57
58 DECLARE_WND_CLASS(L"Chrome_OmniboxView"); 58 DECLARE_WND_CLASS(L"Chrome_OmniboxView");
59 59
60 OmniboxViewWin(OmniboxEditController* controller, 60 OmniboxViewWin(OmniboxEditController* controller,
61 ToolbarModel* toolbar_model, 61 ToolbarModel* toolbar_model,
62 LocationBarView* parent_view, 62 LocationBarView* parent_view,
63 CommandUpdater* command_updater, 63 CommandUpdater* command_updater,
64 bool popup_window_mode, 64 WindowMode window_mode,
65 views::View* location_bar, 65 views::View* location_bar,
66 views::View* popup_parent_view); 66 views::View* popup_parent_view);
67 ~OmniboxViewWin(); 67 ~OmniboxViewWin();
68 68
69 // Gets the relative window for the specified native view. 69 // Gets the relative window for the specified native view.
70 static gfx::NativeView GetRelativeWindowForNativeView( 70 static gfx::NativeView GetRelativeWindowForNativeView(
71 gfx::NativeView edit_native_view); 71 gfx::NativeView edit_native_view);
72 72
73 views::View* parent_view() const; 73 views::View* parent_view() const;
74 74
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 384
385 // Common implementation for performing a drop on the edit view. 385 // Common implementation for performing a drop on the edit view.
386 int OnPerformDropImpl(const views::DropTargetEvent& event, bool in_drag); 386 int OnPerformDropImpl(const views::DropTargetEvent& event, bool in_drag);
387 387
388 scoped_ptr<OmniboxPopupView> popup_view_; 388 scoped_ptr<OmniboxPopupView> popup_view_;
389 389
390 // The parent view for the edit, used to align the popup and for 390 // The parent view for the edit, used to align the popup and for
391 // accessibility. 391 // accessibility.
392 LocationBarView* parent_view_; 392 LocationBarView* parent_view_;
393 393
394 // When true, the location bar view is read only and also is has a slightly 394 // When set to POPUP, the location bar view is read only and also has a
395 // different presentation (font size / color). This is used for popups. 395 // slightly different presentation (font size / color). When set to DISABLED,
396 bool popup_window_mode_; 396 // the location bar looks like a POPUP type but is not selectable or
397 // focusable.
398 WindowMode window_mode_;
397 399
398 // True if we should prevent attempts to make the window visible when we 400 // True if we should prevent attempts to make the window visible when we
399 // handle WM_WINDOWPOSCHANGING. While toggling fullscreen mode, the main 401 // handle WM_WINDOWPOSCHANGING. While toggling fullscreen mode, the main
400 // window is hidden, and if the edit is shown it will draw over the main 402 // window is hidden, and if the edit is shown it will draw over the main
401 // window when that window reappears. 403 // window when that window reappears.
402 bool force_hidden_; 404 bool force_hidden_;
403 405
404 // Non-null when the edit is gaining focus from a left click. This is only 406 // Non-null when the edit is gaining focus from a left click. This is only
405 // needed between when WM_MOUSEACTIVATE and WM_LBUTTONDOWN get processed. It 407 // needed between when WM_MOUSEACTIVATE and WM_LBUTTONDOWN get processed. It
406 // serves two purposes: first, by communicating to OnLButtonDown() that we're 408 // serves two purposes: first, by communicating to OnLButtonDown() that we're
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 // Instance of accessibility information and handling. 501 // Instance of accessibility information and handling.
500 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; 502 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_;
501 503
502 // The native view host. 504 // The native view host.
503 views::NativeViewHost* native_view_host_; 505 views::NativeViewHost* native_view_host_;
504 506
505 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); 507 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
506 }; 508 };
507 509
508 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 510 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698