@@ -784,57 +784,72 @@ class Main extends ImmutableComponent {
784
784
: null
785
785
}
786
786
< div className = 'top' >
787
- {
788
- menubarVisible
789
- ? < div className = 'titlebar' >
790
- < Menubar template = { menubarTemplate } />
791
- < WindowCaptionButtons windowMaximized = { this . props . windowState . getIn ( [ 'ui' , 'isMaximized' ] ) } />
787
+ < div className = 'navbarCaptionButtonContainer' >
788
+ < div className = 'navbarMenubarFlexContainer' >
789
+ < div className = 'navbarMenubarBlockContainer' >
790
+ {
791
+ menubarVisible
792
+ ? < div className = 'menubarContainer' >
793
+ < Menubar template = { menubarTemplate } />
794
+ </ div >
795
+ : null
796
+ }
797
+ < div className = 'navigatorWrapper'
798
+ onDoubleClick = { this . onDoubleClick }
799
+ onDragOver = { this . onDragOver }
800
+ onDrop = { this . onDrop } >
801
+ < div className = 'backforward' >
802
+ < LongPressButton
803
+ l10nId = 'backButton'
804
+ className = 'back fa fa-angle-left'
805
+ disabled = { ! activeFrame || ! activeFrame . get ( 'canGoBack' ) }
806
+ onClick = { this . onBack }
807
+ onLongPress = { this . onBackLongPress }
808
+ />
809
+ < LongPressButton
810
+ l10nId = 'forwardButton'
811
+ className = 'forward fa fa-angle-right'
812
+ disabled = { ! activeFrame || ! activeFrame . get ( 'canGoForward' ) }
813
+ onClick = { this . onForward }
814
+ onLongPress = { this . onForwardLongPress }
815
+ />
816
+ </ div >
817
+ < NavigationBar
818
+ ref = { ( node ) => { this . navBar = node } }
819
+ navbar = { activeFrame && activeFrame . get ( 'navbar' ) }
820
+ frames = { this . props . windowState . get ( 'frames' ) }
821
+ sites = { this . props . appState . get ( 'sites' ) }
822
+ activeFrameKey = { activeFrame && activeFrame . get ( 'key' ) || undefined }
823
+ location = { activeFrame && activeFrame . get ( 'location' ) || '' }
824
+ title = { activeFrame && activeFrame . get ( 'title' ) || '' }
825
+ scriptsBlocked = { activeFrame && activeFrame . getIn ( [ 'noScript' , 'blocked' ] ) }
826
+ partitionNumber = { activeFrame && activeFrame . get ( 'partitionNumber' ) || 0 }
827
+ history = { activeFrame && activeFrame . get ( 'history' ) || emptyList }
828
+ suggestionIndex = { activeFrame && activeFrame . getIn ( [ 'navbar' , 'urlbar' , 'suggestions' , 'selectedIndex' ] ) || 0 }
829
+ isSecure = { activeFrame && activeFrame . getIn ( [ 'security' , 'isSecure' ] ) }
830
+ locationValueSuffix = { activeFrame && activeFrame . getIn ( [ 'navbar' , 'urlbar' , 'suggestions' , 'urlSuffix' ] ) || '' }
831
+ startLoadTime = { activeFrame && activeFrame . get ( 'startLoadTime' ) || undefined }
832
+ endLoadTime = { activeFrame && activeFrame . get ( 'endLoadTime' ) || undefined }
833
+ loading = { activeFrame && activeFrame . get ( 'loading' ) }
834
+ mouseInTitlebar = { this . props . windowState . getIn ( [ 'ui' , 'mouseInTitlebar' ] ) }
835
+ searchDetail = { this . props . windowState . get ( 'searchDetail' ) }
836
+ enableNoScript = { this . enableNoScript ( activeSiteSettings ) }
837
+ settings = { this . props . appState . get ( 'settings' ) }
838
+ noScriptIsVisible = { noScriptIsVisible }
839
+ />
840
+ < div className = 'topLevelEndButtons' >
841
+ < Button iconClass = 'braveMenu'
842
+ l10nId = 'braveMenu'
843
+ className = { cx ( {
844
+ navbutton : true ,
845
+ braveShieldsDisabled,
846
+ braveShieldsDown : ! braverySettings . shieldsUp
847
+ } ) }
848
+ onClick = { this . onBraveMenu } />
849
+ </ div >
850
+ </ div >
792
851
</ div >
793
- : null
794
- }
795
- < div className = 'navigatorWrapper'
796
- onDoubleClick = { this . onDoubleClick }
797
- onDragOver = { this . onDragOver }
798
- onDrop = { this . onDrop } >
799
- < div className = 'backforward' >
800
- < LongPressButton
801
- l10nId = 'backButton'
802
- className = 'back fa fa-angle-left'
803
- disabled = { ! activeFrame || ! activeFrame . get ( 'canGoBack' ) }
804
- onClick = { this . onBack }
805
- onLongPress = { this . onBackLongPress }
806
- />
807
- < LongPressButton
808
- l10nId = 'forwardButton'
809
- className = 'forward fa fa-angle-right'
810
- disabled = { ! activeFrame || ! activeFrame . get ( 'canGoForward' ) }
811
- onClick = { this . onForward }
812
- onLongPress = { this . onForwardLongPress }
813
- />
814
852
</ div >
815
- < NavigationBar
816
- ref = { ( node ) => { this . navBar = node } }
817
- navbar = { activeFrame && activeFrame . get ( 'navbar' ) }
818
- frames = { this . props . windowState . get ( 'frames' ) }
819
- sites = { this . props . appState . get ( 'sites' ) }
820
- activeFrameKey = { activeFrame && activeFrame . get ( 'key' ) || undefined }
821
- location = { activeFrame && activeFrame . get ( 'location' ) || '' }
822
- title = { activeFrame && activeFrame . get ( 'title' ) || '' }
823
- scriptsBlocked = { activeFrame && activeFrame . getIn ( [ 'noScript' , 'blocked' ] ) }
824
- partitionNumber = { activeFrame && activeFrame . get ( 'partitionNumber' ) || 0 }
825
- history = { activeFrame && activeFrame . get ( 'history' ) || emptyList }
826
- suggestionIndex = { activeFrame && activeFrame . getIn ( [ 'navbar' , 'urlbar' , 'suggestions' , 'selectedIndex' ] ) || 0 }
827
- isSecure = { activeFrame && activeFrame . getIn ( [ 'security' , 'isSecure' ] ) }
828
- locationValueSuffix = { activeFrame && activeFrame . getIn ( [ 'navbar' , 'urlbar' , 'suggestions' , 'urlSuffix' ] ) || '' }
829
- startLoadTime = { activeFrame && activeFrame . get ( 'startLoadTime' ) || undefined }
830
- endLoadTime = { activeFrame && activeFrame . get ( 'endLoadTime' ) || undefined }
831
- loading = { activeFrame && activeFrame . get ( 'loading' ) }
832
- mouseInTitlebar = { this . props . windowState . getIn ( [ 'ui' , 'mouseInTitlebar' ] ) }
833
- searchDetail = { this . props . windowState . get ( 'searchDetail' ) }
834
- enableNoScript = { this . enableNoScript ( activeSiteSettings ) }
835
- settings = { this . props . appState . get ( 'settings' ) }
836
- noScriptIsVisible = { noScriptIsVisible }
837
- />
838
853
{
839
854
siteInfoIsVisible
840
855
? < SiteInfo frameProps = { activeFrame }
@@ -919,6 +934,7 @@ class Main extends ImmutableComponent {
919
934
: null
920
935
}
921
936
</ div >
937
+
922
938
< UpdateBar updates = { this . props . appState . get ( 'updates' ) } />
923
939
{
924
940
this . props . appState . get ( 'notifications' ) && this . props . appState . get ( 'notifications' ) . size && activeFrame
0 commit comments